unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jonas Bernoulli <jonas@bernoul.li>
Cc: 19432@debbugs.gnu.org
Subject: bug#19432: backtrace for errors that occur inside process sentinels
Date: Mon, 22 Dec 2014 23:15:43 -0500	[thread overview]
Message-ID: <jwvh9wnj93o.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87h9wncvy1.fsf@bernoul.li> (Jonas Bernoulli's message of "Mon, 22 Dec 2014 20:43:02 +0100")

> Please provide a way to get backtraces for errors that occur inside
> process sentinels.

(setq debug-on-error t) works for me:

   emacs -Q --eval '(setq debug-on-error t)'                          \
            --eval '(let ((proc (start-process "foo" nil "true")))    \
                      (set-process-sentinel proc (lambda (&rest args) \
                                                   (+ args 2))))'

brings up a *Backtrace* buffer just fine.


        Stefan





  reply	other threads:[~2014-12-23  4:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-22 19:43 bug#19432: backtrace for errors that occur inside process sentinels Jonas Bernoulli
2014-12-23  4:15 ` Stefan Monnier [this message]
2015-12-26 16:34   ` Lars Ingebrigtsen
2016-02-29  5:47     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvh9wnj93o.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=19432@debbugs.gnu.org \
    --cc=jonas@bernoul.li \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).