Many have asked how to get debugging working with their existing Php setup. The first thing you need to do is download the DBG module from our download page. There is a version for Windows and a version for Linux.
Put the right version of the module in the ext directory. Then add the following to your php.ini file. This example is for Windows:
extension=php_dbg.dll
[DBG]
debugger.enabled = true
debugger.profiler_enabled = true
debugger.JIT_host = 127.0.0.1
debugger.JIT_port = 7869
debugger.enable_session_cookie = true
Once you do this, you need to restart your web server.