Get Rake to always show the error stack trace for your project

December 7, 2007 Pivotal Labs

Tired of rake hiding your error stack trace?

rake aborted!
Build failed

(See full trace by running task with --trace)

You can have rake always show your error stack trace by going into your project’s Rakefile and setting:

Rake.application.options.trace = true

Now you never need to worry about passing –trace again.

About the Author


Ruby Quiz (A Trick Question)
Ruby Quiz (A Trick Question)

Here is a little Ruby trivium for you. Type this into IRB: def foo def bar 1 end end => ...

rake query_trace
rake query_trace

QueryTrace is a great Rails plugin (which I learned about from ErrTheBlog) for pinpointing where in your Ra...