From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: Feature request: debug-quit Date: Sun, 04 Nov 2012 18:04:46 +0100 Message-ID: <87r4o98fkh.fsf@bzg.ath.cx> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352048695 9837 80.91.229.3 (4 Nov 2012 17:04:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2012 17:04:55 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Dave Abrahams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 04 18:05:05 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TV3d8-0004pN-5y for ged-emacs-devel@m.gmane.org; Sun, 04 Nov 2012 18:05:02 +0100 Original-Received: from localhost ([::1]:52387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV3cz-00064K-9F for ged-emacs-devel@m.gmane.org; Sun, 04 Nov 2012 12:04:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV3cw-000641-7I for emacs-devel@gnu.org; Sun, 04 Nov 2012 12:04:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TV3cv-0007S3-8U for emacs-devel@gnu.org; Sun, 04 Nov 2012 12:04:50 -0500 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:58153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV3cv-0007Ry-24 for emacs-devel@gnu.org; Sun, 04 Nov 2012 12:04:49 -0500 Original-Received: by mail-we0-f169.google.com with SMTP id u3so2689983wey.0 for ; Sun, 04 Nov 2012 09:04:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=NY74eeQcKyt71ysO9p6bK1QXu4iEJvFPuWQTaCtvvH8=; b=Sxk5GDXxHxQkYzTYSCh/0FE9oV46G1AvxMQU0u6NWrjQgVOHTSWe3qU5LeXSqkZ/9G PdArqCIKN/BpeQgAIgd7ahy5MmSZBJ5aoKF6ah90zC6mQprA3UnBM4x7Vr/ZGB8cQxWX 6EJmWLiyjbHJZmacO5pGNiJngDrD2MNaiAst4wHkz4w22PL25Ac6EkGE5GVZNShz4Vft /xGVRZ2xDDZjbDhxljCl2KDZWckT219QB9d98JuIx3UDa7qTG0OeCl3lJ8ZXGSuVML/Y 3cbtOArvlMnkW95Fw80xqRpeI/kOBxa/2WLeyTv63kbtEBjlEZDpld30pl1we9wXbLT9 lpkQ== Original-Received: by 10.216.28.194 with SMTP id g44mr2534635wea.49.1352048687666; Sun, 04 Nov 2012 09:04:47 -0800 (PST) Original-Received: from bzg.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPS id fa9sm7709238wib.5.2012.11.04.09.04.46 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Nov 2012 09:04:46 -0800 (PST) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id 442AE2240B; Sun, 4 Nov 2012 18:04:46 +0100 (CET) In-Reply-To: (Dave Abrahams's message of "Sun, 04 Nov 2012 11:42:25 -0500") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.82.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154663 Archived-At: Hi Dave, Dave Abrahams writes: > on Sun Nov 04 2012, Stefan Monnier wrote: > >>> When Emacs gets hung, and I didn't know it was going to hang, so I >>> didn't turn on debug-on-quit, it would be great to have a keystroke that >>> would drop me straight into the debugger. As it is, these things can be >>> almost impossible to diagnose. >> >> One possibility is to use `debug-on-event'. >> It's not a keystroke, tho. > > M-x apropos doesn't know what `debug-on-event' is, and neither do I This is what I have: ,----[ C-h v debug-on-event RET ] | Enter debugger on this event. When Emacs | receives the special event specified by this variable, it will try to | break into the debugger as soon as possible instead of processing the | event normally through `special-event-map'. | | Currently, the only supported values for this | variable are `sigusr1' and `sigusr2'. `---- What version of Emacs are you using? -- Bastien