Incorporate debug output when the stack overflows.