## Komodo Debugging with PHP / Apache

Posted by troyt on 2006-06-26 11:47
OS: All / Any | Product: Komodo | tags: Apache debugging PHP
Question:

How do I configure Apache for PHP debugging in Komodo?

1. Edit the php.ini file that Apache is using and add these values:

    zend_extension_ts=c:\path\to\php_xdebug.dll
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey=1


To verify that this is configured properly, create a script called 'info.php' containing the code:

    <?php phpinfo(); ?>


You should see the xdebug extension settings section near the bottom of the output.

2. Open Komodo and go to Edit / Preferences / Debugger. Change the debugger
listener port to 9000. Also, go into the 'Debug' menu and make sure the
debugger listener is enabled.
3. Open up a browser window and point it at a PHP script on your local Apache,
but first append the XDEBUG_SESSION_START variable to the url:

    http://localhost/index.php?XDEBUG_SESSION_START=1


A dialog-box should appear in Komodo announcing that a remote debug session has been
requested.