Komodo 6.0 Debugging
I've never used an IDE or debugger until today, I normally code in Notepad++ but I would like to follow along with the videos using Komodo 6.0 for my IDE. I have a XAMMP server set up on my windows 7 machine and and have downloaded the correct version of X-Debug according to the configuration wizard on the X-Debug site, followed the instructions to install and restarted the server. I installed easy x-debug for Firefox and it appears to be installed properly. I add a break point in the code (I am on the video "How hooks are invoked with module_invoke_all()") and have the Trails module installed. I enable easy x-debug and refresh the Modules page as shown in the video but nothing happens in Komodo. I'm probably missing something here but I'm not sure where to go from here. Any ideas would be greatly appreciated.
I did have Komodo set to listen but it still wasn't working. After playing with c:\xampp\php\php.ini and some settings in Komodo it worked. For anyone else who is using xampp on windows with PHP 5.3 and Komodo 6.0:
--php.ini--
(I commented out the entire [XDebug] section and added the following:
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "xdebug_profile.%R::%u"
xdebug.remote_enable=1
xdebug.remote_autostart = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_mode = "req"
xdebug.remote_port = 9000
xdebug.trace_output_dir = "C:\xampp\tmp"
BE SURE TO RESTART APACHE!
In Komodo: Edit Menu > Preferences | Under the Debugger category click Connection and set Komodo to listen on a specific port: 9000. Check to make sure it's configured properly: Under the Languages category click PHP and make sure that the Debugger Configuration shows "Successfully configured for local PHP debugging."
Thanks so much for sharing those php.ini settings. I was about to pull my hair out trying to get the debugging working in Komodo 6.1!
Hey, glad to hear that you got it working, and thank you for sharing the steps you took!
Thanks to @rwfaught and Chris for such helpful instructions. I had tried to get this working with Wamp without success and now, with xampp, everything is working perfectly.
I searched the web for a few days before I came back home to Buildamodule.com. It would be great to have a couple of videos detailing the setup of Komodo, xampp and xdebug for both Macs and PCs. Failing that, a mention of this thread in a video would not come amiss. Or, a PDF with detailed instructions.
Hi Chris and everyone,
I have downloaded Komodo IDE, I am using MAMP as my local server, and I have installed the easy xdebug add-on on firefox.
Is there anything else that I'm missing?
If not....then the next problem is how do I connect everything to get it working?
I am new to using a PHP IDE properly.
In "Places" on the Komodo, I have selected the "htdocs" of the MAMP local server. In that htdocs, I have installed drupal in the "drupal-7.7" folder. After selecting "htdocs" I selected the 'index.php' inside the 'drupal-7.7' folder.....from there I clicked "Listen for Debugging Connections" on Komodo....I go to the firefox browser that has the index.php file displayed...click on xdebug...and nothing happens....
I then go back to Komodo and choose Debug Go/Continue....it debugs and the output is
Notice: Undefined index: REMOTE_ADDR in /Applications/MAMP/htdocs/drupal-7.7/includes/bootstrap.inc on line 2488
Call Stack:
16.2770 4274400 1. _drupal_exception_handler(???) /Applications/MAMP/htdocs/drupal-7.7/includes/bootstrap.inc:0
16.2771 4275664 2. _drupal_log_error(???, ???) /Applications/MAMP/htdocs/drupal-7.7/includes/bootstrap.inc:1969
16.2772 4275696 3. drupal_maintenance_theme() /Applications/MAMP/htdocs/drupal-7.7/includes/errors.inc:191
16.2776 4343968 4. _drupal_maintenance_theme() /Applications/MAMP/htdocs/drupal-7.7/includes/bootstrap.inc:2211
16.2931 7658576 5. list_themes(???) /Applications/MAMP/htdocs/drupal-7.7/includes/theme.maintenance.inc:57
16.2931 7659480 6. _system_rebuild_theme_data() /Applications/MAMP/htdocs/drupal-7.7/includes/theme.inc:615
16.3012 7679280 7. drupal_alter(???, ???, ???, ???) /Applications/MAMP/htdocs/drupal-7.7/modules/system/system.module:2495
16.3013 7680448 8. module_implements(???, ???, ???) /Applications/MAMP/htdocs/drupal-7.7/includes/module.inc:938
16.3013 7681312 9. cache_get(???, ???)
etc. etc......
If I run debug on the sample file that Komodo prepares though...the page displays properly......
How do I get all of these pieces to work together in order to follow the videos?
Please help guide me....thank you very much....
Hi.....
got it working in mamp pro now, but not yet on bitnami....
Hi,
I am trying to set up the debugger in Komodo 7.1.3. I am running my drupal installation on a mac in MAMP. I installed xdebug in firefox, though I cannot get everything to connect. Any help would appreciated.
Best,
Stephen
Hi there,
One more thing that you'll need to do is click the "Listen for debugging connections" in the debug menu. My menu will look a little different because it's a Mac, but hopefully this screenshot will point you in the right direction: https://skitch.com/stompeers/rq3c8/test