There are two ways to invoke the debugger.
- Add &XDEBUG_SESSION_START=userid to the URL.
- Add xdebug_break() php function to your code.
The first method is also the easiest. Simply, navigate to the page you wish to debug, append the &XDEBUG_SESSION_START=userid where userid is your user name, sp in my case I substitute userid with bpretsel, hit the browser refresh button and then the Komodo should start debugging. Switch to Komodo, also check that the listener has detected the call to debug.
Now, if it does not work then the problem may be one of the following:
- Hostname is not correctly configured, i.e. you may have 127.0.0.1 instead of localhost. Change this in your php.ini file. If you are going to dabble with this file it may help to comment out lines rather than delete so that you can keep track of previous values you specified.
- Listener on Komodo may not be running. In Komodo, select Debug → Listener Status to view the status and what port the listener is using.
- Port number of config and listener are different. Port in php.ini and Komodo Debug Listener should be 9000.
- Your apache httpd.conf may provide some clues. You can locate yours using httpd -V look for the SERVER_CONFIG_FILE line to locate the file.
Recent comments
33 sec ago
6 hours 9 min ago
7 hours 16 min ago
8 hours 50 min ago
20 hours 38 min ago
22 hours 56 min ago
1 day 20 min ago
1 day 8 hours ago
1 day 9 hours ago
1 day 10 hours ago