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

Here is my problem: I need to debug a Wordpress theme with a lot of dependencies (which 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 the stack trace in real time for calling dump functions? Or is there a way to see the stack trace at the end of the request?

The stack I'm working on consists of:

  • Apache 2.4
  • PHP 5.6
  • MariaDb 10.1.13

and runs on Windows with XAMPP, but I have a similar stack with MySQL 5.6 running on a CentOS server, if that can be useful.

+5
source share
1 answer

If you are using PHPStorm (perhaps some other IDEs also include this), you can integrate XDebug using this guide , which will allow you to set breakpoints in your code and perform string building, see the results of variables, etc., which looks like what interests you

0
source

All Articles