Book Image

Rake Task Management Essentials

By : Andrey Koleshko
Book Image

Rake Task Management Essentials

By: Andrey Koleshko

Overview of this book

Table of Contents (18 chapters)
Rake Task Management Essentials
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Index

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 resolution

  • Using the Ruby approach to debug a Rake project