Set debug mode for after_failure and after_success.