phpwordpressapachedebuggingscript-debugging

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:

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.


Solution

  • If you're using PHPStorm (Maybe some other IDE's also include this), you can integrate XDebug using this guide, which will let you set break points in your code and step through execution line by line, seeing the results of variables and so on, which sounds like it might be what you're interested in