Chapter 6. Debugging Rake Tasks
Debugging is an unavoidable process when building applications, and this concerns Rake applications too. Rake provides a lot of techniques that will be helpful in many situations not only while writing, but also while using a Rake application. In this chapter, we will look into a number of debugging tools that are available out of the box. There will an example on using Ruby's debugger
to debug a Rake code.
In this chapter, we will cover the following topics:
Using command-line arguments for debugging
Getting a dependency's resolution with
--prereqs
Using the
--rules
option to trace the rule resolutionUsing the Ruby approach to debug a Rake project