Home > Backend Development > PHP Tutorial > PHP method tracing

PHP method tracing

WBOY
Release: 2016-10-22 00:14:19
Original
1641 people have browsed it

Does PHP have a function tracing tool
For example, if you request an API, you want to know which files and methods are called by this API, as well as the files associated with the called files, so that you can track it recursively

Reply content:

Does PHP have a function tracing tool
For example, if you request an API, you want to know which files and methods are called by this API, as well as the files associated with the called files, so that you can track it recursively

xdebug

Is this okay

<code>debug_backtrace()</code>
Copy after login

There is another one when an exception occurs

<code>$exception->getTrace()</code>
Copy after login

Can’t I use IDE?

What you may need is xhprof

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template