Symfony-is there any code that prints the php Program Execution Process?

Source: Internet
Author: User
I am studying the symfony framework of php. When I made a form, I found that the form is not flexible. Many official documents are packaged functions and I am not clear about the internal principles. When I checked the source code, I found some objects. I don't know how many objects there are, and my headers are dizzy... I am studying the symfony framework of php. When I made a form, I found that the form is not flexible. Many official documents are packaged functions and I am not clear about the internal principles. When I checked the source code, I found some objects. I don't know how many objects there are, and the headers are dizzy, and I don't know what is going on. I wonder if there is any way to print out all the code that has been executed from the request to the end, so it is convenient to analyze the source code.

Reply content:

I am studying the symfony framework of php. When I made a form, I found that the form is not flexible. Many official documents are packaged functions and I am not clear about the internal principles. When I checked the source code, I found some objects. I don't know how many objects there are, and the headers are dizzy, and I don't know what is going on. I wonder if there is any way to print out all the code that has been executed from the request to the end, so it is convenient to analyze the source code.

Execute the following functions as needed
Debug_print_backtrace ()
For more details, see the official PHP manual.

Of course, we recommend that you use Xdebug to track the execution process, or use xdebug to trace the complete execution process.

Xhprof is also good

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.