editing PHP with NetBeans IDE
Monday, October 27th, 2008I admit. I’m an IDE and RAD lover. And I enjoy trying out new development enviroments all the time in the quest for the perfect work tools. After using Eclipse for quite a long time for PHP, I switched to Activestate’s Komodo 4.4 IDE. Komodo is a really nice and slick IDE with by far the best PHP code completition I’ve found in any tool. The debugging is easy to setup using xdebugger and it’s easy to analyse your code using watches and analysing tools. One tool I found useful was the Watch file tool wich could be compared to the tail -f command in Linux (allows you to ‘stream’ the data of a file to output. useful to analyze log files on the fly for instance).
However, I think Komodo suffers a bit from a ruff UI, loosing variables and values in debugging sessions, forgets it’s line position and break point positions from time to time and has a limited subversion integration.
Then I found NetBeans early access for PHP. This was a really nice surprise, however I couldn’t get debugging working so I switched back to Komodo again. But now Netbeans.org released the RC1 of version 6.5. After some fiddeling I got the debbuger working (I guess it really didn’t have to do with rc1 but still..) and by that I’ve got my new favourite environment. Main advantages are for me:
- The debugger is the best PHP debugger I’ve tried.
- A slick and fast UI. Very easy and intuitive to rearrange panels and views almost in any way I’d like
- Superb subversion support. Direct markers for changes, easy shortcuts to view diffs and revert actions.
- Good refactoring support (things like Ctrl+R to refactor a variable etc).
- Built in SQL editor with code completion
- Active and easy class/property inspector (Komodo lists all open files, Netbeans shows only active or selected file in file list without opening it)
- and so on..
A screen shot attached, editing a TYPO3 ext project for a client.. note the SVN popup..
