views:

41

answers:

1

As you may know rake swallows the full backtrace on uncaught exception. If I want to have a full backtrace, I need to add the --trace option. I find this very annoying because some of my tasks take long time to run (up to 6 hours), when it crashes I don't have any debugging info. I need to run it again with the --trace. On top of that, the system may not be in the same state as when the error occurred, so it may not show afterward. I always have to add --trace on any tasks. This displasy stuff that I don't want to see when the task is executed.

Is there a way to change this default behaviour? (which I don't think is useful at all)

+1  A: 

Supposedly you can go into the Rakefile and add:

Rake.application.options.trace = true

I discovered this here quite by accident while searching for a solution to one of my own issues I'm having.

Trejkaz