From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: stack-trace-on-error vs. debug-on-error. Date: Fri, 04 Mar 2005 12:09:29 +0100 Message-ID: <873bvby8eu.fsf@xs4all.nl> References: <87ll93lpec.fsf@xs4all.nl> <87acpjloam.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109936854 4943 80.91.229.2 (4 Mar 2005 11:47:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Mar 2005 11:47:34 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 04 12:47:34 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D7BGH-0007VK-JB for ged-emacs-devel@m.gmane.org; Fri, 04 Mar 2005 12:46:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7BZM-0000NA-1X for ged-emacs-devel@m.gmane.org; Fri, 04 Mar 2005 07:06:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D7Axh-0005K1-Lg for emacs-devel@gnu.org; Fri, 04 Mar 2005 06:27:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D7AwY-0004p6-U7 for emacs-devel@gnu.org; Fri, 04 Mar 2005 06:26:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7AwI-0004aB-Pq for emacs-devel@gnu.org; Fri, 04 Mar 2005 06:25:50 -0500 Original-Received: from [194.109.24.29] (helo=smtp-vbr9.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D7AgS-000191-Rt for emacs-devel@gnu.org; Fri, 04 Mar 2005 06:09:29 -0500 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr9.xs4all.nl (8.12.11/8.12.11) with ESMTP id j24B9SO2091769 for ; Fri, 4 Mar 2005 12:09:28 +0100 (CET) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1D7AgT-00016e-00 for ; Fri, 04 Mar 2005 12:09:29 +0100 Original-To: emacs-devel@gnu.org In-Reply-To: <87acpjloam.fsf@xs4all.nl> (Lute Kamstra's message of "Fri, 04 Mar 2005 11:04:49 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 31 X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:34169 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34169 Lute Kamstra writes: > I'll document it in the Lisp manual. Here it is: *** lispref/debugging.texi 3 Mar 2005 16:28:32 -0000 1.27 --- lispref/debugging.texi 4 Mar 2005 11:02:19 -0000 *************** *** 166,171 **** --- 166,185 ---- (lambda () (setq debug-on-error t))) @end example + When the debugger is entered, it shows a backtrace (@pxref{Using + Debugger}). If you like to see the backtrace when an error happens, + but you do not want to enter the debugger, you can set the variable + @code{stack-trace-on-error} to non-@code{nil}. + + @defopt stack-trace-on-error + This variable determines whether a backtrace buffer is shown when an + error is signalled and not handled. If @code{stack-trace-on-error} is + @code{t}, all kinds of errors display a backtrace; if it is + @code{nil}, none do. If the value is a list, an error only means to + display a backtrace if one of its condition symbols appears in the + list. + @end defopt + @node Infinite Loops @subsection Debugging Infinite Loops @cindex infinite loops