Improved error handling and routing display in debugger