Komodo 6.0 Debugging

8 replies [Last post]
Last seen: 11 years 17 weeks ago
Joined: 2011-02-14

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.

Chris Shattuck
Last seen: 10 weeks 4 days ago
Joined: 2009-08-16
Listen for debugging connections

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

Last seen: 11 years 17 weeks ago
Joined: 2011-02-14
Working Now

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:

(I commented out the entire [XDebug] section and added the following:

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_autostart = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = ""
xdebug.remote_mode = "req"
xdebug.remote_port = 9000
xdebug.trace_output_dir = "C:\xampp\tmp"


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."

Last seen: 11 years 17 weeks ago
Joined: 2011-03-04
@rwfaught: Thanks!

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!

Chris Shattuck
Last seen: 10 weeks 4 days ago
Joined: 2009-08-16
Hey, glad to hear that you

Hey, glad to hear that you got it working, and thank you for sharing the steps you took!

Last seen: 6 years 29 weeks ago
Joined: 2011-06-11
Can we have a Video please?

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.

Last seen: 10 years 44 weeks ago
Joined: 2011-08-05
Komodo IDE with MAMP (Debugging Issue)

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....

Last seen: 10 years 44 weeks ago
Joined: 2011-08-05
Got it working in MAMP PRO now but not BITNAMI yet

got it working in mamp pro now, but not yet on bitnami....

Last seen: 9 years 9 weeks ago
Joined: 2012-12-05
komodo 7 setting up the debugger

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.

Add to playlist

Add to , or

Add to new playlist:

Add to playlist
This is a member-only feature
But, it's easy to become a member

Add to cart:

Contact us

Below are the supported keyboard shortcuts for our video player.

Start / stop video
Go to next video
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
Jump to a percentage (2 is 20%, for example)
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
1 month
6 months
10% off
12 months
20% off
All memberships come with the following:
24 / 7 access to the entire 1800+ video library
An innovative video player with a rolling transcript
Extensive Drupal and cross-platform training
A thorough and thoughtful training style
Progress tracking
Take notes on specific video sections
Intuitive multi-user management
How many users?
Go solo with a single user, or give multiple team members access through one account and get discounts by bundling multiple users into a single membership.