Debugging Rails

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!