Live data from Hacker News

Show HN: pry-rescue — workflow-optimized debugging for ruby

cirw.in

11–20 of 31 posts

Re: Show HN: pry-rescue — workflow-optimized debugging for ruby

#13

> Whenever an unhandled exception happens in your program, pry-rescue opens an interactive pry shell right at the point it was raised. Instead of glowering at a stack-trace spewed out by a dying process, you'll be engaging with your program as though it were still alive! The pry console gives you access to the method that raised the exception, you can use it to inspect the values of variables (no more print statement…

Same story as the Lisp folks. Good ideas need to be wrapped up in easy-to-understand, small packages for them to be picked up by the more mainstream languages.

Re: Show HN: pry-rescue — workflow-optimized debugging for ruby

#16
This is awesome work, thanks!

Just throwing this out there, I know a bit about the difficulties this would entail, but: Is it plausible to have something like this running in production mode?

I mean, if I had a production Rack app running and could have pry-rescue (somehow) save its state and bubble the exception up normally, and later connect to the process and inspect what went wrong. Would something like this be feasible?

Re: Show HN: pry-rescue — workflow-optimized debugging for ruby

#17

> Whenever an unhandled exception happens in your program, pry-rescue opens an interactive pry shell right at the point it was raised. Instead of glowering at a stack-trace spewed out by a dying process, you'll be engaging with your program as though it were still alive! The pry console gives you access to the method that raised the exception, you can use it to inspect the values of variables (no more print statement…

Ruby is pretty much an unholy mix of Perl + Smalltalk + a sprinkling of Lisp with an extreme syntactic sugar-bomb on top to start with. At least in terms of inspirations.

And I say that mostly as a compliment (though I still find the Ruby grammar atrocious from an implementation point of view).

Re: Show HN: pry-rescue — workflow-optimized debugging for ruby

#18
post #17

> Whenever an unhandled exception happens in your program, pry-rescue opens an interactive pry shell right at the point it was raised. Instead of glowering at a stack-trace spewed out by a dying process, you'll be engaging with your program as though it were still alive! The pry console gives you access to the method that raised the exception, you can use it to inspect the values of variables (no more print statement…

Ruby is pretty much an unholy mix of Perl + Smalltalk + a sprinkling of Lisp with an extreme syntactic sugar-bomb on top to start with. At least in terms of inspirations. And I say that mostly as a compliment (though I still find the Ruby grammar atrocious from an implementation point of view).

> And I say that mostly as a compliment (though I still find the Ruby grammar atrocious from an implementation point of view).

I think there is something deep embodied here. Syntactic sugar items for languages are like features for libraries. It's been said that if everyone is completely happy with a library's features, the library maintainers haven't been doing their job.

Re: Show HN: pry-rescue — workflow-optimized debugging for ruby

#19
post #16

This is awesome work, thanks! Just throwing this out there, I know a bit about the difficulties this would entail, but: Is it plausible to have something like this running in production mode? I mean, if I had a production Rack app running and could have pry-rescue (somehow) save its state and bubble the exception up normally, and later connect to the process and inspect what went wrong. Would something like this be f…

Yes :). I'm not exactly sure of the details, but I certainly want to try! See https://github.com/mrbrdo/rack-webconsole: there's already a rack-webconsole-pry, so it should be an easy step to hook it up to past exceptions.
Post reply on HN