Reputation: 182
I'm trying to use step-through debugging in Ruby 2.2. I see that byebug is the debugger of choice for Ruby 2.x, but Eclipse doesn't appear to recognise it. Steps to reproduce:
Result:
Debugging Engine not started The 'Fast Ruby Debugger (ruby-debug)' is selected, but the 'ruby-debug' or 'debugger' gems don't seem to be installed in the selected Ruby Interpreter (C:\Apps\Ruby22-x64\bin\ruby.exe)
I tried installing the debugger gem, but it apparently doesn't support Ruby 2.x. A response to this question suggests byebug and Eclipse don't mix, but it wasn't part of the OP's question and isn't addressed by anyone else.
Anyone able to help? If I need to regress to an earlier version of Ruby, what version should I be using?
Upvotes: 0
Views: 3825
Reputation: 2770
Upvotes: 4
Reputation: 31
You could try with the Ruby Built-In Debugger, on Eclipse go to Window > Preferences > Ruby > Engines and choose "Ruby Built-In Debugger" in the dropdown list.
Not sure if this works with Ruby 2.x, but for me is working with Ruby 1.9.3.
Upvotes: 0