PHP prints call stack information for program debugging

PHP中文网
Release: 2016-07-29 09:13:49
Original
1933 people have browsed it

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();
Copy after login


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)!


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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!