show debug info when error message occur