ConradIrwin / pry-rescue

Start a pry session whenever something goes wrong.
MIT License
852 stars 49 forks source link

Block rescuing not working (Rails/Minitest)? #82

Open hakunin opened 9 years ago

hakunin commented 9 years ago

Hi, I tried pry-rescue in my minitest setup and since it didn't seem to work I tried to use the block way of doing things.

The exception is not caught when I do Pry.rescue { } or spoon-feed the exception by Pry::rescued(e) nothing happens.

Glad to debug, anything I should look for?

neumachen commented 9 years ago

What's your rspec version?

hakunin commented 9 years ago

Hi, the project uses Minitest, not rspec.

neumachen commented 9 years ago

Can you produce a sample app that exhibits this problem? Be happy to look at it.

hakunin commented 9 years ago

Thats the thing, I bet it works on a fresh app. What I wanted to know is how to debug it on the existing one.

Feel free to close this though. Most of the time I can do withou the Pry.rescue superpowers, only when the problem is inside a gem its a real pain to vendor it just to do a few things with the code.

neumachen commented 9 years ago

For an existing one it may be a due to minitest's version because the recent update for RSpec also had this issue.