News for hackers. Stuff that matters.
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 cmer on Wednesday April 04, 2012 @11:15AM (#3797947)
Perhaps I'm wrong, but I don't think Pry can do "step" and such? I've been using Pry as well but I'm still very happy to see familiar ruby-debug back!
Re:A fork of ruby-debug that works on 1.9.2 and 1.9.3 by janus on Wednesday April 04, 2012 @11:43AM (#3798066)
You can do steps if you install pry-nav https://github.com/nixme/pry-nav
Re:A fork of ruby-debug that works on 1.9.2 and 1.9.3 by mrinterweb on Wednesday April 04, 2012 @01:03PM (#3798516)
Pry-nav gives you access to next, continue, and step. Give pry and pry-nav a try. I doubt you will have much interest in going back to ruby-debug.
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)

Re:A fork of ruby-debug that works on 1.9.2 and 1.9.3 by banister on Thursday April 05, 2012 @08:44AM (#3802293)
I've never encountered those limitations, but since you have could you file an issue on the pry-nav repo? (https://github.com/nixme/pry-nav).

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 :)

Re:A fork of ruby-debug that works on 1.9.2 and 1.9.3 by jshen on Wednesday April 04, 2012 @11:06AM (#3797903)
I've switched to Pry
Re:A fork of ruby-debug that works on 1.9.2 and 1.9.3 by phamilton on Wednesday April 04, 2012 @11:10AM (#3797920)
The thing I like best about pry is that I don't have to start my application with --debugger.

Also, being able to cd into and out of objects is fantastic.

Re:A fork of ruby-debug that works on 1.9.2 and 1.9.3 by joevandyk on Wednesday April 04, 2012 @02:14PM (#3798974)
Shouldn't ruby-debug be part of ruby? I've been super annoyed when new ruby versions come without a working debugger.
Re:A fork of ruby-debug that works on 1.9.2 and 1.9.3 by JiPi on Wednesday April 04, 2012 @01:32PM (#3798706)
Switched to Pry and probably will not look back in a near future...am I missing something here?
Re:A fork of ruby-debug that works on 1.9.2 and 1.9.3 by messel on Wednesday April 04, 2012 @09:40AM (#3797497)
ha, just shared http://news.ycombinator.com/item?id=3797489

taking a look.

Re:A fork of ruby-debug that works on 1.9.2 and 1.9.3 by cmaxwell on Thursday April 05, 2012 @01:59AM (#3801505)
I have been using ruby-debug with 1.9.3 for a while now and have not had issues. Don't really understand why this fork was needed.