Let us take an example such as (max 0 (/ 8 0))
-- the problem is the argument to /
-- i.e., DIVISORS cannot be 0. The debugging output looks like this:
Debugger entered--Lisp error: (arith-error)
/(8 0)
(max 0 (/ 8 0))
eval((max 0 (/ 8 0)) nil)
elisp--eval-last-sexp(nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
call-interactively(eval-last-sexp nil nil)
command-execute(eval-last-sexp)
Q: How can I modify debugger-mode
so that the problem function /
(on the second line from the top) is a different color -- e.g., text-property "red"; and, perhaps an indication that the problem is the DIVISORS argument?
(
. Telling just which argument is problematic is not easy. It depends on the particular error message, and some error messages are not about any particular argument.