unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Backtraces on server?
@ 2016-08-03 17:05 Clément Pit--Claudel
  2016-08-03 20:37 ` Stefan Monnier
  2016-08-05  6:08 ` Eli Zaretskii
  0 siblings, 2 replies; 5+ messages in thread
From: Clément Pit--Claudel @ 2016-08-03 17:05 UTC (permalink / raw)
  To: Emacs developers


[-- Attachment #1.1: Type: text/plain, Size: 426 bytes --]

Hi emacs-dev,

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

Clément.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Backtraces on server?
  2016-08-03 17:05 Backtraces on server? Clément Pit--Claudel
@ 2016-08-03 20:37 ` Stefan Monnier
  2016-08-05  6:08 ` Eli Zaretskii
  1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2016-08-03 20:37 UTC (permalink / raw)
  To: emacs-devel

> 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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Backtraces on server?
  2016-08-03 17:05 Backtraces on server? Clément Pit--Claudel
  2016-08-03 20:37 ` Stefan Monnier
@ 2016-08-05  6:08 ` Eli Zaretskii
  2016-08-05  7:14   ` Clément Pit--Claudel
  2016-09-08 11:41   ` Philipp Stephani
  1 sibling, 2 replies; 5+ messages in thread
From: Eli Zaretskii @ 2016-08-05  6:08 UTC (permalink / raw)
  To: Clément Pit--Claudel; +Cc: emacs-devel

> From: Clément Pit--Claudel <clement.pit@gmail.com>
> Date: Wed, 3 Aug 2016 13:05:47 -0400
> 
> Is is by design that the server doesn't print backtraces, or am I doing something silly?

It's a bug.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Backtraces on server?
  2016-08-05  6:08 ` Eli Zaretskii
@ 2016-08-05  7:14   ` Clément Pit--Claudel
  2016-09-08 11:41   ` Philipp Stephani
  1 sibling, 0 replies; 5+ messages in thread
From: Clément Pit--Claudel @ 2016-08-05  7:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 286 bytes --]

On 2016-08-05 02:08, Eli Zaretskii wrote:
>> From: Clément Pit--Claudel <clement.pit@gmail.com>
>> Date: Wed, 3 Aug 2016 13:05:47 -0400
>>
>> Is is by design that the server doesn't print backtraces, or am I doing something silly?
> 
> It's a bug.

Thanks for confirming :)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Backtraces on server?
  2016-08-05  6:08 ` Eli Zaretskii
  2016-08-05  7:14   ` Clément Pit--Claudel
@ 2016-09-08 11:41   ` Philipp Stephani
  1 sibling, 0 replies; 5+ messages in thread
From: Philipp Stephani @ 2016-09-08 11:41 UTC (permalink / raw)
  To: Eli Zaretskii, Clément Pit--Claudel; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

Eli Zaretskii <eliz@gnu.org> schrieb am Fr., 5. Aug. 2016 um 08:09 Uhr:

> > From: Clément Pit--Claudel <clement.pit@gmail.com>
> > Date: Wed, 3 Aug 2016 13:05:47 -0400
> >
> > Is is by design that the server doesn't print backtraces, or am I doing
> something silly?
>
> It's a bug.
>
>
Is there already a bug number? Didn't find anything using
https://debbugs.gnu.org/cgi/pkgreport.cgi?include=subject%3Aemacsclient+backtrace;package=emacs
.

[-- Attachment #2: Type: text/html, Size: 1072 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-09-08 11:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-03 17:05 Backtraces on server? Clément Pit--Claudel
2016-08-03 20:37 ` Stefan Monnier
2016-08-05  6:08 ` Eli Zaretskii
2016-08-05  7:14   ` Clément Pit--Claudel
2016-09-08 11:41   ` Philipp Stephani

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).