Validate hook name
Do not execute hooks if not defined, print debug information
Use debug method to log commands to output before execution