A
A
Arris12017-12-15 01:36:24
1C-Bitrix
Arris1, 2017-12-15 01:36:24

How to debug in Bitrix?

I can't figure out how to debug Bitrix via Xdebug and PHPStorm.
For example, customized component templates.
Where should breakpoints be placed and which file should be run in the browser?
(I work through the xdebug plugin for chrome).
In the browser, launch the page where the component is placed? (it seems that the template.php template cannot be viewed through the browser)
5a32fc27c2b9a179871346.png
For example, I put a breakpoint at the end of the component call code (see screenshot). It gives some information, but there is no data on the variables and methods that were used when changing the template.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Gritsuk, 2017-12-15
@Arris1

It gives some information, but there is no data on the variables and methods that were used when changing the template.

Those. did you configure debug? I may not understand something, but do you have a breakpoint in your screenshot after calling the component? Do you want to see how the component template is formed? If the answer to all these questions is yes, then the breakpoint should be placed in the component template. But keep in mind that if caching is enabled on the site, then the component will not always execute template.php.

M
malayamarisha, 2021-02-16
@malayamarisha

Can you tell me how you set up the debugging? Preferably step by step.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question