Allow debugging patch failures

Closes #33056.