Debugging for failed tasks