Notes on Life, ‘Puters and Hawaii

NetBeans Ruby IDE Debugging for Ruby and Rails

Did I mention how cool NetBeans Ruby IDE is yet? David Hansen showed some basic text console debugging at RailsConf but seriously - who wants to mess with walking through running code at the command prompt? Not me.

Today, using the NB Ruby IDE, I walked through some thorny configuration code in ActiveScaffold using the debugger. It was incredibly easy as I had configured the ruby-debug-ide ruby gem with the IDE previously. You can step from your app right on through to Rails, plugin code and ERB files with this debugger! => Awesome!

To debug a Ruby on Rails app all you need to do is fire up rails with the debug button and set your breakpoints by double clicking in the left bar. It’s that easy. When your code is reached mongrel will pause and wait for you to step through the code. You have the stack, the variables and everything right there in front of you as you would expect. No more ‘puts’ or ‘logger’ debugging for me - back to future!

http://wiki.netbeans.org/wiki/view/RubyInstallation

Debugging A Layout in Rails with NB Ruby IDE

Comments are closed.