add debug info for exception