Home  >  Article  >  Backend Development  >  PHP method tracing

PHP method tracing

WBOY
WBOYOriginal
2016-10-22 00:14:191585browse

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>

There is another one when an exception occurs

<code>$exception->getTrace()</code>

Can’t I use IDE?

What you may need is xhprof

Statement:
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