Home  >  Article  >  Backend Development  >  PHP prints call stack information for program debugging

PHP prints call stack information for program debugging

PHP中文网
PHP中文网Original
2016-07-29 09:13:491935browse

BlogMoving: Due to various reasons, my current blog will be first published on blog.mojijs.com. You can Baidusearch for "Brother Jiang's ink technologyblog", or click here for the original address of this article http: //blog.mojijs.com/post/143.html

We all know how important the code call stack is for debugging programs. I am very good at JavaScript, whether it is the browser or the Node.js environment. But I am not a PHP expert, so the call stack is particularly important. The following is how PHP prints call stack information.

echo "<pre class="brush:php;toolbar:false">"; 
debug_print_backtrace();


The above introduces PHP printing call stack information for program debugging, including content on blogs, Baidu, and Node.js. For more related content, please pay attention to the PHP Chinese website (www.php. cn)!


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
Previous article:Use echo!Next article:Use echo!