Re:A fork of ruby-debug that works on 1.9.2 and 1.9.3
by mrinterweb on Wednesday April 04, 2012 @11:12AM
(#3797931)
After getting frustrated with ruby debug on 1.9.3, I realized that pry-nav and pry-stack-explorer are an excellent replacement for ruby-debug. After using pry for a while, I doubt I will return to using irb and ruby-debug.
Re:A fork of ruby-debug that works on 1.9.2 and 1.9.3
by nixme on Wednesday April 04, 2012 @12:07PM
(#3798183)
As the author of pry-nav, I'm really glad to see more people using it! Thanks and please file issues if you get any odd behavior. I've been trying to improve the tracing.
Re:A fork of ruby-debug that works on 1.9.2 and 1.9.3
by snapvolumes on Wednesday April 04, 2012 @05:22PM
(#3799924)
Unfortunately using pry-nav with pry has some limitations that ruby-debug doesn't:
1. It doesn't seem to work in some cases (like putting binding.pry in a Proc.new { ... }
2. On Windows, binding.pry works when directly embedded in a ruby script, but when put into code such as a Rails controller or model then several things don't work properly ('whereami' will show it doesn't have context.. though this works fine on Linux)
For these reasons, I still find ruby-debug better for actual debugging (when step/next are necessary) and pry better for inspecting state at a particular moment in time (but I can just call pry from the ruby-debug in that case)
For these reasons, I still find ruby-debug better for actual debugging (when step/next are necessary) and pry better for inspecting state at a particular moment in time (but I can just call pry from the ruby-debug in that case)
Remember, pry and pry-nav are new projects, and bugs can usually be fixed. And the sooner you file an issue, the sooner the bug can be fixed :)
Also, being able to cd into and out of objects is fantastic.
taking a look.