简体   繁体   English

有没有一种方法可以使用Apache在PHP中进行实时堆栈跟踪?

[英]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. 这是我的问题:我必须调试具有很多依赖性(我不知道)并且没有文档/注释的Wordpress主题,因为我需要通过添加一些功能来对其进行编辑。

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 阿帕奇2.4
  • PHP 5.6 PHP 5.6
  • MariaDb 10.1.13 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. 并且可以在Windows下使用XAMPP运行,但是如果有帮助的话,我在CentOS服务器上运行MySQL 5.6的堆栈也与此类似。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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