Symfony-Is there code to print the PHP program execution process?

Source: Internet
Author: User
I am learning PHP symfony Framework, when making forms, found that form forms are not too flexible, the official document is a lot of packaged functions, not very clear the internal principle. When I looked at the source code, I found that all the objects, around to not know how many objects, the head is dizzy, do not know what is going on. Do not know if there is a way to the code from the request to the end of the process of all executed code is printed, so that the source code to facilitate analysis

Reply content:

I am learning PHP symfony Framework, when making forms, found that form forms are not too flexible, the official document is a lot of packaged functions, not very clear the internal principle. When I looked at the source code, I found that all the objects, around to not know how many objects, the head is dizzy, do not know what is going on. Do not know if there is a way to the code from the request to the end of the process of all executed code is printed, so that the source code to facilitate analysis

Perform the following functions where you need to know
Debug_print_backtrace ()
For more detailed information, please see the official PHP manual.

Of course, it is recommended to use Xdebug to track the execution process, or to directly xdebug trace out the complete execution process

Xhprof, too.

  • Related Article

    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.