Can xdebug only track function calls when an error occurs?

Source: Internet
Author: User
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 ,...
  1. Does Xdebug track function calling only when a PHP script error occurs?
  2. If not, how can I configure Xdebug so that I can see the function calls during execution in the script error-free state?
  3. 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:
  1. Does Xdebug track function calling only when a PHP script error occurs?
  2. If not, how can I configure Xdebug so that I can see the function calls during execution in the script error-free state?
  3. 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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.