I'm trying to use pry-rescue inside of a rake task. Something like this:
bundle exec rescue rake my:task
But when an exception occurs (undefined method...
) it just exists like normal. How can I use pry-rescue with my rake task?
Did you try wrapping your task body in a rescue block?
task 'my_task' do
Pry.rescue {
things.that_need_doing
}
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With