Does Xdebug track function calling only when a PHP script error occurs? If not, how can I configure Xdebug so that I can see the function calls during execution in the script error-free state? If Xdebug can only view the function call status when a script error occurs ,...
- Does Xdebug track function calling only when a PHP script error occurs?
- If not, how can I configure Xdebug so that I can see the function calls during execution in the script error-free state?
- If Xdebug can only view the function call status when a script error occurs, is there any other tool to track the function call status during PHP Execution?
Reply content:
- Does Xdebug track function calling only when a PHP script error occurs?
- If not, how can I configure Xdebug so that I can see the function calls during execution in the script error-free state?
- If Xdebug can only view the function call status when a script error occurs, is there any other tool to track the function call status during PHP Execution?
You only need to start the debugging mode... XDebug to run the complete program in one step...
You do not need to track function calls when a program fails...
Right next to the computer... I coded a simple code screenshot to show you at a glance...
XDebug does not need to be configured to start a single step... it depends on how the editor you use uses the DBG protocol...
This varies according to different editors... but in general, it is based onF5
...
If you cannot find it... another alternative is to set a breakpoint at the program entry...
In this way, the program will be interrupted and enter the debugging status...
Grace... that's it...