[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Backtraces on server?
From: |
Stefan Monnier |
Subject: |
Re: Backtraces on server? |
Date: |
Wed, 03 Aug 2016 16:37:17 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> Is is by design that the server doesn't print backtraces, or am
> I doing something silly?
>
> $ emacs -Q --eval '(setq server-name "test")' --daemon
>
> $ emacsclient -s test --eval "(progn (setq debug-on-error t) (/ 1 0))"
> *ERROR*: Arithmetic error
>
> $ emacsclient -s test --eval "(progn (setq noninteractive t) (setq
> debug-on-error t) (/ 1 0))"
> *ERROR*: Arithmetic error
IIRC server.el runs the expression within a condition-case so as to send
the error back to the client, and debug-on-error only kicks in for
errors that aren't caught by any condition-case.
We could use the condition-case-unless-debug construct there, but you
still wouldn't see the backtrace in the client.
Stefan