astashov / vim-ruby-debugger

Vim plugin for debugging Ruby applications (using ruby-debug-ide gem)
435 stars 36 forks source link

Is it working under ruby 2.0.0? #94

Open jmarceli opened 10 years ago

jmarceli commented 10 years ago

When I try to start the debugger (:Rdebugger in Gvim) I get message:

Debugger started

But in ruby_debugger_output there is a message:

Uncaught exception: cannot load such file -- /path/to/my/app/script/rails

And debugger is not working at all. I use ruby 2.0.0 is it a problem, maybe there is some easy solution?

runephilosof commented 10 years ago

vim-ruby-debugger uses the debugger-xml gem https://github.com/astashov/debugger-xml which uses the debugger gem, which doesn't work for 2.x https://github.com/cldwalker/debugger/issues/125 Actually you should have seen an error when you tried to install the debugger-xml gem, since it would fail at installing the debugger gem.

deivid-rodriguez commented 9 years ago

Support for Ruby 2.x is coming soon guys!

jmarceli commented 9 years ago

It would be really nice, tell me if I can help somehow (any branch or repo with dev version?). I'm not an expert but I will try to do my best.

deivid-rodriguez commented 9 years ago

@jmarceli Thanks for the offer. @astashov knows it best but as far as I know, vim-ruby-debugger doesn't need any changes. It should be enough that it uses latest debugger-xml and latest byebug (when it is released).

astashov commented 9 years ago

Yup, @deivid-rodriguez is right. Once the next version of byebug is released, I'll add its support to debugger-xml (there is already a PR for that), and you just will need to specify the newer version in your Gemfile to make it work.

jmarceli commented 9 years ago

OK. Thanks for the info. Now I'm using pry but it would be nice to have debugger integrated with vim.