-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debugger command integration #1
Comments
I'd definitely like to integrate I'm not sure if I'm onboard though with the idea of wrapping the debugger (rather than the debugger wrapping pry). Just for background, here's how I'm used to debugger:
(I know I could be using the rdebug command and setting breakpoints outside of code, but I've found this to be the easiest thing for my development style.) If I understand what you're suggesting, that would look more like:
What I like about the way I'm already doing it is that ruby-debug is good at moving through the running process, whereas I find pry is great for inspecting the code and a snapshot of the current state of the process. I like the idea of a different context for those two things. For me, pry is a supercharged IRB with great customizability and a beautiful interface. Whereas the ruby-debug prompt is good at what it does, albeit not as nice looking as pry. Implementing |
you do make good arguments :) nonetheless i feel that a repl/debugger are so close in some ways that it On a related note, you may be interested in this sister project to your own
On Fri, Jun 17, 2011 at 4:37 AM, AndrewO <
|
I've played with SLIME a few times, but the idea of mucking with the running system scared me off—probably because I was trying to learn Lisp and Emacs at the same time. :) Being more comfortable with Ruby, that shouldn't be a problem. I'm really interested in the potential for interactive development that Pry enables. Like you said, this seems to be a road that's been pretty well trod by SLIME and Smalltalk's tools. Having not used those, I can't say exactly how I'd go about making a good environment, but I'm sure there's a lot of lessons to be learned there. (If there's a group already working on something like that based on Pry, I'd love to hear about it.) The idea of a pure ruby debugger is pretty appealing, especially given that ruby-debug seems a bit complex in some places. Also, I would love to have a single debugging library that worked across rubies without native code. I'll take a look. You can probably tell, I'm not philosophically wed to ruby-debug, it's just the tool I'm used to. So, I think the way I'm going to handle this ticket is keep it open until I add |
yo, any further progress on |
I haven't had a chance to look into it. I've actually been using PryDebug recently. :) I'm not 100% it's what I prefer, but suffice it to say, it's been keeping me from looking into this. I'll see if I can take a look sometime within the next week or so. |
Hi, just reading this article, which mentioned the pry-nav gem, which provides the step, next, and continue commands. But I just looked at PryDebug, which also has step and next. So I'm quite confused. I'd like to use pry as my debugger, but the opinions seem to be very scattered... Should I just use PryDebug? |
@ndbroadbent it depends what you want, |
Thanks for your reply. Ok, so they're just the same feature, packaged in different ways. Alright, well, I think I will follow the Setting up Rails to use Pry guide, and use the Thanks for your help! |
Any updates on this? Now that someone forked & fixed ruby-debug I'd like to use pry with it :) |
I, personally haven't had a chance to look at this in awhile. Most of my work now has either been on my own projects (where I tend to use pry exclusively) or with a client who hasn't approved pry for internal use (yet--there's been some encouraging movement though!). I hate to be one of those people that releases something open source and lets it rot, but here I am. If anyone is willing to step up, let me know. |
The fix to get the current functionality in debugger is simple and straightforward - it's mainly changing the requires. Since this gem does not depend on ruby-debug, it should be possible to use this gem with debugger without changes. See Asquera@d9e1720 |
ported to Also a gem is pushed: :) |
Hey guy, great work on this gem btw,
I was wondering if you'd consider integrating commands like
next
andstep
and so on into pry itself, and having pry actually wrap the debugger (rather than the other way round) for more seamless use?THat would be pretty damn awesome ;) I contact the ruby-debug maintainer asking him how to go about accessing the
next
andstep
functionality, but he hasnt responded to me yet :(anyway, just a few thoughts!
keep up the good work!
The text was updated successfully, but these errors were encountered: