Graceful debug handling