Allow debugging patching failures

Closes #33056.