Author Topic: Debug functionality - how to find the relevant file(s) for editing?  (Read 3556 times)

roebba

  • Beginner
  • *
  • Posts: 7
Hi

There was a nice function in VM1, where you could see which file that was parsed after enabling the debug mode.
I can't find such a function in VM2 (It has a debug mode, but it doesn't show which files are being parsed).

Anybody?

---
Joomla 2.5.4 | VM2 2.0.6

buyonlineindia

  • Beginner
  • *
  • Posts: 2
same here find it difficult to debug in VM2....

roebba

  • Beginner
  • *
  • Posts: 7
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #2 on: June 16, 2012, 20:46:11 pm »
Seriously... Are there nobody which can give a hint here??
Please.
 :-\

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10282
  • VirtueMart Version: 3+
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #3 on: June 16, 2012, 20:59:31 pm »
what do you want to do?
I do NOT do development work for hire.

roebba

  • Beginner
  • *
  • Posts: 7
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #4 on: June 17, 2012, 00:40:10 am »
I don't remember exactly, but in VM1 / Joomla 1.x there was a possibility to toggle on a kind of a debug mode. With this toggled on small dots with exclamation points came up, by the mouse over function on theese (if i remember correctly)  you could actually see which file (filename) that had been parsed for that part of the page. This function was very nice to use to find out which files/code that was executed....
 


richdean77

  • Beginner
  • *
  • Posts: 18
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #5 on: July 06, 2012, 13:45:10 pm »
Does anyone know how to turn on a debug mode?

This is the first time I have used virtuemart, in the past I have used Magento and it has an inbuilt debugging mode which allows you to turn on hints so you know what files control what on the screen.

I am finding it extremely difficult to find files when I need to change something or customize something, does anyone have any hints on how to make this easier for web designers like myself to find files that need to be edited?

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10282
  • VirtueMart Version: 3+
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #6 on: July 06, 2012, 21:03:16 pm »
Does anyone know how to turn on a debug mode?

This is the first time I have used virtuemart, in the past I have used Magento and it has an inbuilt debugging mode which allows you to turn on hints so you know what files control what on the screen.

I am finding it extremely difficult to find files when I need to change something or customize something, does anyone have any hints on how to make this easier for web designers like myself to find files that need to be edited?

http://forum.virtuemart.net/index.php?topic=90935.0
I do NOT do development work for hire.

oorrcc

  • Beginner
  • *
  • Posts: 2
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #7 on: August 13, 2013, 09:12:01 am »
I have exactly the same question.  I am new with VM2. I tried Virtuemart V2.0.22a.  I found there is used to have the little question mark on the left top in the frontend when I turn on the debug mode. And I can easily find the relevant files by mouse over it. Now there is nothing but a lot of descriptions with Exclamation marks. And I can't find any documentation of file structure for VM2. Is there anybody can help? Thanks.

Maxim Pishnyak

  • Virtuemart 2 is quite bugfree now
  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2657
  • Virtuemart 2 is quite bugfree now
    • Virtuemart Ukraine division
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #8 on: August 13, 2013, 10:35:21 am »
Could you provide a link? I'll be able to dig that issue.
Virtuemart 2 is quite bugfree now. You can support Community by voting for Project on the JED
http://extensions.joomla.org/extensions/e-commerce/shopping-cart/129/review
Join us in
https://www.facebook.com/virtuemart
https://twitter.com/virtuemart

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26993
  • Always on vacation
    • Jenkin Hill Internet
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #9 on: August 13, 2013, 15:46:18 pm »
We do not support hacking the core files, so the debug mode is really only for experienced VM developers. In most cases users just need to edit the view files using template overrides or css override. Just about everything else can be changed in configuration.

So what is your precise issue?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.0.9935 on Joomla 3.8.12 PHP 7.0.31
Testing VM 3.4.0.9941 on Joomla 3.8.12

oorrcc

  • Beginner
  • *
  • Posts: 2
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #10 on: August 16, 2013, 02:37:36 am »
Thanks for all your help.
What I am looking for is:
1. in VM1.19, the browse pages are in folder:components/com_virtuemart/themes/default/templates/browse, and the product detail pages are in foler:/public_html/components/com_virtuemart/themes/default/templates/product_details, and I can easily setup them in the product category page. In VM2, I cant found the folder structure is different and I cant find any documentation introduce the folder.
2. in VM 1.19, if I want enable the debug mode, I can easily find which file I should modify to change the layout by move the mouse to the little question mark. But this function is gone.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26993
  • Always on vacation
    • Jenkin Hill Internet
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #11 on: August 16, 2013, 13:17:14 pm »
In VM2 the view files (templates) can all be found under components/com_virtuemart/views/ - each subdirectory from there has an obvious name.

You should use any edited view file as a template override.

Documentation for the template system is in http://docs.virtuemart.net/tutorials/33-templating-layouts.html
Also see http://www.ostraining.com/blog/joomla/overrides   http://forum.virtuemart.net/index.php?topic=90935.0  http://forum.virtuemart.net/index.php?topic=98505.0

If you disable SEO in VM Configuration/SEO then the page url gives a good hint to the fileset used.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.0.9935 on Joomla 3.8.12 PHP 7.0.31
Testing VM 3.4.0.9941 on Joomla 3.8.12

sandomatyas

  • Jr. Member
  • **
  • Posts: 216
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #12 on: May 02, 2018, 15:31:35 pm »
Old topic but still actual.
I have to manage a site which uses 4 templates and every template has several layouts for productdetails view, and administrators set different layouts for different categories, it is a big mess. When I try to debug it, it takes a lot of time to find which file is in use.
When you enable debug mode it would be great to display which template files are loaded with full path, it would help a lot!

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26993
  • Always on vacation
    • Jenkin Hill Internet
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #13 on: May 02, 2018, 16:01:17 pm »
If I have to create more than one override file I add an HTML comment that it will display in the page code to enable the file(s) used to be identified.
eg  <!-- jhoverride prices hidden -->

If I use jhoverride for the first word in each comment then a quick search of the generated page code will show which override (or overrides if more than one)  is used.

I don't think it would be possible to identify the templates in debug.


Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.0.9935 on Joomla 3.8.12 PHP 7.0.31
Testing VM 3.4.0.9941 on Joomla 3.8.12

sandomatyas

  • Jr. Member
  • **
  • Posts: 216
Re: Debug functionality - how to find the relevant file(s) for editing?
« Reply #14 on: May 02, 2018, 21:57:36 pm »
If I have to create more than one override file I add an HTML comment that it will display in the page code to enable the file(s) used to be identified.
eg  <!-- jhoverride prices hidden -->

If I use jhoverride for the first word in each comment then a quick search of the generated page code will show which override (or overrides if more than one)  is used.

I don't think it would be possible to identify the templates in debug.

You're right, I do something similar but frankly, there should be something debug info about it in the system itself. There are so many views, layouts, sublayouts :)