简体   繁体   中英

Is there a way to have real time stack trace in PHP with apache?

Here's my problem: I have to debug a Wordpress theme with a lot of dependencies (that I don't know) and no documentation/comments because I need to edit it by adding some features.

So the question is: is there a way to access to real time stack trace to dump function calls? Or either a way to see the stack trace at the end of a request?

The stack I'm working on is composed by:

  • Apache 2.4
  • PHP 5.6
  • MariaDb 10.1.13

and is running under Windows with XAMPP but I've a similar stack with MySQL 5.6 running on a CentOS server if can be helpful.

如果您使用的是PHPStorm(也许还包括其他一些IDE),则可以使用本指南集成XDebug, 该指南可让您在代码中设置断点并逐行执行,查看变量的结果等等。 ,这听起来可能是您感兴趣的

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM