Book Image

Drush for Developers - Second Edition

By : Juan Pablo Novillo Requena, Juan P Novillo Requena
Book Image

Drush for Developers - Second Edition

By: Juan Pablo Novillo Requena, Juan P Novillo Requena

Overview of this book

Table of Contents (13 chapters)
Drush for Developers Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
2
Keeping Database Configuration and Code Together
Index

Chapter 4. Error Handling and Debugging

Up to this point in the book, we have covered many topics about running code with Drush. The next step is to make sure that our code runs smoothly by ensuring that input data is correct and by implementing error handling. We will also see a few tools to help us understand Drush's bootstrap even further.

In this chapter, we will cover the following topics to meet the preceding goals:

  • Validating input

  • Rolling back on errors

  • Browsing Drush's available hooks

  • Monitoring Drush's bootstrap process

  • Inspecting Drupal's hooks and function implementations