Archive for the ‘Rubymine’ category

Debugging cucumber scenarios in Rubymine

February 1st, 2012

Debugging cucumber scenarios in Rubymine is wonderfully simple. Here’s how i do it:

Create a cucumber step that puts the app into debug mode and pops open the current page that’s being debugged

Screen Shot 2012-02-01 at 16.00.42

I use Rubymine’s gutter breakpoints, and I add the breakpoint after the save_and_open_page method call, so the page pops open before entering the debugger.

Insert the step into whichever scenario i wish to debug

Screen Shot 2012-02-01 at 15.43.25

Run the scenario in debug mode

Screen Shot 2012-02-01 at 15.48.36

Inspect the app’s objects in Rubymine’s Watches

Screen Shot 2012-02-01 at 15.36.27

Pretty sweet! Super easy and extremely useful.

Rubymine’s a great app, and i’m just starting to scratch the surface.