Posted by gollyg on January 5, 2009 at 1:19am
Following up on a conversation about debugging environments from our last meetup you may be interested to know that the Aptana IDE (free based upon eclipse) now offers a php plugin with a heap of useful features.
One of the most compelling is the built in debugger support. The plugin actually downloads and configures xdebug in your local dev environment. This will allow you to debug your drupal modules etc with the use of breakpoints, watchlists etc.
Download aptana at
www.aptana.com
and check out the screencasts on using the php plugin at
http://www.aptana.com/php
Comments
I've used the Aptana IDE
I've used the Aptana IDE many times and it has proven quite a useful tool. However, I still prefer the simplicity of TextMate on a Mac.
Kim
Drupality: http://drupality.com.au/
Professional Drupal Consulting, Design and Development in Australia
PreviousNext
http://www.previousnext.com.au
Debugging a drupal's module
I'd like to know how can I debug a drupal's module using Aptana. It just work with index.php, but how could I see aptana stop at a breakpoint in the annotate.module example provide by the Pro Drupal Development book. By the way I have both debuger installed, xdebug and zend.
Please, I will appreciate any help
set up .module as a PHP file type
I'm not sure how you do it in Aptana, but in Eclipse it's like this:
HTH
Shaun
Try also this
Try also this http://www.thierryb.net/pdtwiki/index.php?title=Using_PDT_:Installation:_Installing_the_Zend_Debugger It works for me in Aptana 2.02 for every module.
u ever figured this out?
read ur post. figured aptana might be an easy IDE setup (with debugging for a localhost drupal site). but when i saw u say it couldn't handle *.module files it spooked me
so i'm wondering if u've managed to get this - or any other - setup figured out since?
Actually, I stopped using
Actually, I stopped using Aptana after they dropped their custom support for PHP.
But it does not have a problem with defining custom extensions and associating them with an editor.
Go to preferences and then search for 'content' - this will filter the list sufficiently to find the entry for 'content types'. Add your extension there and then go to 'file associations'. follow the patterns there and it should be done.
I now use Netbeans, and overall I have been really happy with it. Seems more stable, smaller memory footprint, and an integrated php and javascript debugger, SVN etc. Code hints, autocompletion, all the usual stuff.
It is Java-based, so it is x-platform.
I would recommend giving it a go.
also netbeans
I now also use Netbeans when I need to debug, for the same reasons as gollyg.
I've found that the latest MAMP ships with xdebug so hooking it all up is relatively painless.
But I find all IDEs overdone for PHP development, Netbeans is still java so it instantly consumes 600-1000mb of memory on my laptop (with minimal plugins just for PHP).
DEbugging
sounds great debugging out of the box wow... the hours i have spent in companies trying to get get XDebug or Zend DeBugger working..... will look into cheers for the heads up
Darn
Mine never works. What I need is a debugger debugger.
debugger debugger
i am in the process of seeing if Apatana's debugging works ; p i totally agree with rimian... i want a debugger debugger and a zend debugger debugger debugger (that last one equals "Zend BUGGER")
What's wrong with Zend
What's wrong with Zend debugger?
I've used it successfully with ZDE (Zend Studio) and Eclipse (phpeclipse, eclipse zend studio and pdt).
It's 3 lines in php.ini and copy dummy.php to your web root.
zend_extension=/path/to/Zend/Debugger/ZendDebugger.sozend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always
Almost exclusively using the firefox zend plugin.
It just works for me :)
Eclipse was harder to get working... but it did eventually.
Aptana installed very easily for me on OS X
See here. I agree with rimian and aimeemaree on needing a debugger debugger when installing Zend.