Komodo IDE debug configuration
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
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...
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.
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.
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.
- Download and install Easy Xdebug from http://www.elime.be/easyxdebug.htm
- In FF(firefox) go to Tools > Add-ons > Extensions.
- Click on Preferences button on easy Xdebug
- 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
- Save changes and restart Mamp Pro
- 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. - In Komodo Preferences > Connection set "a specific port:" to 9000 and save changes.
Hopefully this procedure will work for you guys to.
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
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
Hi all,
Thank you for sharing the solution.....I have finally gotten it to work.
:)
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
I struggled with it but I managed to get it working and I have you're exact same setup.
I put the file Applications/MAMP/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
You can download it here. https://addons.mozilla.org/en-US/firefox/addon/easy-xdebug/
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.