Latest Articles:
- Heroic Failure on the 13th of November
- Ok, I'm not perfect and I still get angry - but still try to deal with it
- Tumbleweed Interview Candidates
- TDD is effective if you look at the right things
- Ballmer not the darling of the stock market
- For and Against Test-Driven Development
- Next life
- Rails authlogic: can't use OAuth and OpenID plugins together
Archive
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
March 2000
Tag Cloud:
Stats:
- Entries = 356
- Notes = 29
General Links
Debugging Rails Applications
I've said that I use netbeans on this blog a few times but never really gone into why.
First, I can park all of the class/project browsers and output windows in the margins of the page and they only pop-up when I click on them.
Second, I can tear off editing windows so I can look at, e.g. Rspec's and the code next to each other. I can also have multiple views of the same file.
Third, it has book marks, which the "poor man's Textmate", 'e', doesn't.
Fourth, ^B will take me to where a function is defined so I can look at the framework and work things out. ^K is a cool key too.
Fifth, I can map everything to key presses if I want.
Sixth, it does indentation properly (which the Eclipse-based Ruby environments don't and it annoys me too much to use them) - it will also re-indent at a key press, which Textmate doesn't seem to do.
Seventh, I can move and copy lines without having to use the mouse: Ctrl-Down copies the current line or selection, Alt-Shift-Up/Down moves the current line or selected lines in the direction you need. This is great. Plus rename of variables inside a method ...
Eighth, you can start mongrel inside the IDE with a keystroke, or start it against the current page.
But best of all, it allows me to debug my Rails apps. You set your break points, start up the debug version of Mongrel and it drops you into a full symbolic debugger. I hadn't realised that lots of people haven't got this facility until I heard a podcast from David HH, the inventor of Rails, when he was saying that debug is back in Rails 2.0. If you use Netbeans it never went away, and you don't have to put breaks in your code.
Plus all the generators and whatnot are visible in the GUI.
The learning curve isn't flat, but not very steep, and it's a good tool that runs on any platform that supports a Java VM.
Enjoy