Open suan opened 10 years ago
@kyrylo afaik better_errors
does not intercept errors in the rails console
@suan, pry-rescue wont rescue it automatically, but you can enter rails console errors using cd-cause
Thanks for the help. It turned out Pry::rescue { <expression> }
was what I was looking for (though it's not automatic) Wonder if there's a way to wrap all irb/pry-rails expressions within a block...
Override Pry.config.exception_handler
to enter the exception
I've tried many things but an unable to get pry-rescue to automatically pry when there's an uncaught exception in a Rails console. The README also only talks about using it in
rails server
. Is this just not supported?