Debugging cucumber steps under JRuby

One of my standard techniques for working with cucumber is to use the
ruby debugger to stop in a step definition, e.g.

When “I visit root” do
visit “/”
1 # to stop debugger going into cuke code

If I do this under mri and look at ‘self’ I get a Cucumber::Rails::World

If I do this under JRuby and look at ‘self’ I get main

This effectively means I can’t debug under JRuby. (1.6.4)

If anyone can help with this I’d be most grateful

All best


Andrew P.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs