emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error message in debugger not clearly visible sometimes


From: Mariano Montone
Subject: Error message in debugger not clearly visible sometimes
Date: Mon, 10 Apr 2023 16:15:06 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

Hello,

    sometimes error messages are not clearly displayed in the debugger.

The error message appears truncated for long strings, and if it has multiple lines, then they are not properly formatted.

So I have this in my setup:

(defun debugger-insert-error-message (args)
  "Insert debugger errors in a different way."
  (when (eql (car args) 'error)
    (let ((error (second args)))
      (insert (error-message-string error))
      (newline 2))))

(advice-add 'debugger--insert-header :before #'debugger-insert-error-message)


Just inserts the error message in the debugger buffer before displaying anything else.

I think it would be nice that Emacs did this by default. What do you think?


      Mariano




reply via email to

[Prev in Thread] Current Thread [Next in Thread]