Komodo IDE debug configuration

9 replies [Last post]
gareth.hall
Offline
Last seen: 10 years 8 weeks ago
Joined: 2011-04-13

Hi

After seeing how well xdebug work in Chris's videos I thought I better look into it. So I have Komodo IDE 6 now but can't seem to get it working.

I use MAMP pro as my local server and have xdebug installed and working. I can see xdebug is enabled in phpinfo(). Also when there is an error I get the xdebug stack plus the error. So I know xdebug is functioning.

I looked at some documentation and tutorials on how to get it working in komodo but it just doesn't work for me.

Doe anyone have any suggestions?

Thanks

obrignoni
Offline
Last seen: 10 years 10 weeks ago
Joined: 2011-02-28
I have you're exact same setup working

I struggled with it but I managed to get it working and I have you're exact same setup.

  1. I'm using MAMP setup with PHP 5.3
  2. I'm using Komodo's version of the xdebug.so file found at http://code.activestate.com/komodo/remotedebugging
    I put the file Applications/MAMP/lib/php/extensions/no-debug-non-zts-XXXXXXXX/xdebug.so
  3. I have the following settings in my php.ini file:
    zend_extension="/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-XXXXXXXX/xdebug.so"
    xdebug.remote_enable=on
    xdebug.remote_handler=dbgp
    xdebug.remote_host=localhost
    xdebug.remote_port=9000
  4. I'm using the Easy xDebug Addon for Firefox (just like Chris videos)
    You can download it here. https://addons.mozilla.org/en-US/firefox/addon/easy-xdebug/
  5. Look at the video "How to use preprocessing functions" and follow along and notice that Chris activates easy xDebug by clicking on the green icon below which adds a red dot.
  6. Set a breakpoint just like he did beside the return statement.
  7. You have to clear the cache each time you made a change and you should see the debugging session output in Komodo.

If you have xDebug working already, maybe you can start at step 4.

I took the opportunity to document this cause it was a real headache until it finally worked.

Hope it helps.

serge
Offline
Last seen: 9 years 30 weeks ago
Joined: 2010-03-11
no luck with xdebug

What should be the Komodo debug preferences? Seems there is more to it. My settings match Obrignoni but no tomato.

Short of using xdebug, can at least someone help me understand how and where to use print_r(debug_backtrace()); and ddebug_backtrace(); as well as how to read the outcome. Seems that being able to read the stack is sorta important part in learning how hooks work. I haven't even started with development part...

obrignoni
Offline
Last seen: 10 years 10 weeks ago
Joined: 2011-02-28
I'm using Komodo's default

I'm using Komodo's default settings (Port 9000). At first, i had problems with Skype using the same port as Komodo, so you might want to check for other applications conflicting with that port. Also, Zend Optimizer has to be disabled in the php.ini. If you choose PHP 5.3 in MAMP that would be disabled by default. Other than that, i'm not sure what else to suggest.

It would be cool for Chris to do a tutorial on this setup but it's a bit difficult since people might have different environments.

LaTulipeBlanche
Offline
Last seen: 10 years 21 weeks ago
Joined: 2011-05-13
Install-problems with Netbeans

I know, it's about Komodo here, but maybe it can help. Whole weekend I've been struggling with the installation of Netbeans + Xdebug + FireFox addOn.
I finally found out that, the first step must be to get installed Xdebug. Secondly to install Netbeans. I didn't do it this way, and after removing Netbeans and reinstalling it, it works like Komodo on the video. Even with Firefox.
(just lost two days.... :(
I love computers... )

Next is trying to learn Drupal and it's modules.

gareth.hall
Offline
Last seen: 10 years 8 weeks ago
Joined: 2011-04-13
Update I finally have it working. Here is How

After spending a lot time I finally got it working. Here is a guide that should make it go.

Note that I am using Mamp Pro.

  1. Download and install Easy Xdebug from http://www.elime.be/easyxdebug.htm
  2. In FF(firefox) go to Tools > Add-ons > Extensions.
  3. Click on Preferences button on easy Xdebug
  4. Grab the code that you need to add to php.ini. Mine is

xdebug.remote_enable=On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp

You will notice I did not include zend_extension_ts=php_xdebug.dll as this is for Windows and not Mac
5. In Mamp pro Server Section set php 5.2.x
6. In Mamp pro Server Section set Zend Optimizer to checked. !important!
7. Click on File > Edit Template > php 5.2.x
8. Find [xdebug] it's around line #1166
9. Change this
;zend_extension="/Applications/MAMP/bin/php5.2/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
to
zend_extension="/Applications/MAMP/bin/php5.2/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
note the number part in this no-debug-non-zts-20060613 might be different
10. Add below point 9 the section you copied in point 4
So mine is

zend_extension="/Applications/MAMP/bin/php5.2/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so"
xdebug.remote_enable=On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp

  1. Save changes and restart Mamp Pro
  2. Create a basic php file with this code
    <?php phpinfo; ?>
    Or simply go to Mamp Pro > WebStart > phpinfo
    Make sure xdebug is loaded. You should find a whole section with xdebug setting near the bottom of the page.
  3. In Komodo Preferences > Connection set "a specific port:" to 9000 and save changes.

Hopefully this procedure will work for you guys to.

amirtaiar
Offline
Last seen: 1 year 7 weeks ago
Joined: 2011-09-30
Not working for me... I have

Not working for me...
I have done all but when activate Mamp pro and try to enter the website it's not loading....
Any solutions?

Thank you

Chris Shattuck
Offline
Last seen: 10 weeks 4 days ago
Joined: 2009-08-16
Awesome, awesome! Thank you

Awesome, awesome! Thank you so much for posting your solution. Getting xDebug working can be a challenge, and this will definitely help some folks out.

Cheers!
Chris

cittamani
Offline
Last seen: 10 years 44 weeks ago
Joined: 2011-08-05
Followed instructions above but it is still not working

Hi all,

Thank you for sharing the solution.....I have finally gotten it to work.

:)

cittamani
Offline
Last seen: 10 years 44 weeks ago
Joined: 2011-08-05
XDebug for BITNAMI?

Hi,
Does xdebug work for Bitnami Drupal?
I did the same steps that made my xdebug work with MAMP PRO on my Bitnami Drupal but I can't seem to get it working.....
any ideas?
thank you

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:


Loading...
Contact us

Below are the supported keyboard shortcuts for our video player.

space
Start / stop video
shift
Go to next video
shift
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
1...9
Jump to a percentage (2 is 20%, for example)
f
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
$29
1 month
$156
6 months
10% off
$276
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?
user
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.