I frequently use script/server -u to debug my rails application.
Is there any trick to execute a breakpoint in case of exception at the
location, where the exception occured?
I frequently use script/server -u to debug my rails application.
Is there any trick to execute a breakpoint in case of exception at the
location, where the exception occured?
place debugger in the line where you want the execution to stop
Nice idea, but what, if you don’t know, where the exception will be
thrown somwhere in a rails lib?
if you want it to stop that far in you have to step into untill you get
where you want, i know tedious but i dont know of any other way
You could run your test directly with rdebug
rdebug /path/to/test
catch Exception
c
That should break on exception.
Cheers!
Arzumy
Very nice. Thanks!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs