How to debug in Bitrix?

Can't deal with the Bitrix debugging via Xdebug and PHPStorm.

For example, custom templates, components.

Where to set the breakpoints and which file to run in the browser?
(work through the xdebug plugin for chrome).

In the browser to run the page hosting the component? (template template.php it seems the same cannot be viewed through a browser)

5a32fc27c2b9a179871346.png

For example, put a breakpoint at the end of the calling code component (see screenshot). What the information gives, but no data on variables and methods that were used in the template.
June 10th 19 at 15:01
2 answers
June 10th 19 at 15:03
Solution
What the information gives, but no data on variables and methods that were used in the template.


Ie debug you still set up? I can not understand why, but You have in the screenshot the stop point is after the call to component? And you want to see how is the template component? If to all these questions the answer is Yes, then the stop should be put in the component template. But we must remember that if you have enabled caching on the website, then the component will not always execute template.php.
Thank you very much, really helped disable caching on the site!
But what has caused the failure of the template with enabled cache? - Precious.Schu commented on June 10th 19 at 15:06
Template data is retrieved from the cache. Read about the caching of components will become clear. - darrion.Hills commented on June 10th 19 at 15:09
June 10th 19 at 15:05
Put a breakpoint in the component or the component class, depending on how it is implemented.
There is something like executeComponent and includeComponentTemplate is your key point

Find more questions by tags PhpStormDebugging1C-BitrixXdebug