From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: using the debugger Date: Fri, 08 Apr 2011 16:33:26 +0100 Message-ID: <87aag04v21.fsf@ericabrahamsen.net> References: <87mxk13saf.fsf@ericabrahamsen.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302277357 18450 80.91.229.12 (8 Apr 2011 15:42:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2011 15:42:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 08 17:42:33 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8DpO-0000Ni-By for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Apr 2011 17:42:30 +0200 Original-Received: from localhost ([127.0.0.1]:49063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8Dhc-00055Z-BC for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Apr 2011 11:34:28 -0400 Original-Received: from [140.186.70.92] (port=41463 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8Dh1-00054s-CC for help-gnu-emacs@gnu.org; Fri, 08 Apr 2011 11:33:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8Dgz-0001uf-Q8 for help-gnu-emacs@gnu.org; Fri, 08 Apr 2011 11:33:51 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:37232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8Dgz-0001uM-HK for help-gnu-emacs@gnu.org; Fri, 08 Apr 2011 11:33:49 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q8Dgx-0002Z6-BB for help-gnu-emacs@gnu.org; Fri, 08 Apr 2011 17:33:47 +0200 Original-Received: from customer8991.pool1.unallocated-106-0.orangehomedsl.co.uk ([91.106.35.38]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2011 17:33:47 +0200 Original-Received: from eric by customer8991.pool1.unallocated-106-0.orangehomedsl.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2011 17:33:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: customer8991.pool1.unallocated-106-0.orangehomedsl.co.uk User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:NWFRti/v0bziqOXzdPnaVsizH0M= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80708 Archived-At: On Fri, Apr 08 2011, Drew Adams wrote: >> while I'm stepping through the calling of a function, it in turn calls >> another function, which I don't really care about. I know what it's >> going to return, I just want to get on with things, but the secondary >> function is long and drawn-out and I have to hit "d" like >> fifty times to get through it and back to the top-level function. >> Can someone tell me how I can skip them? > > Use `c' to `c'ut to the `c'hase, skipping directly to the result of an > evaluation. That was it! I'd been assuming, for no good reason, that 'c' would continue the entire evaluation of the top-level function, not just the frame I happened to be on. Thanks! > [Ken's reply about "instrumenting" was no doubt about using `edebug'. I take it > that you are instead using `debug' (which is what I use, FWIW). IOW, I assume > you're either calling `(debug)' in your code or doing `M-x debug-on-entry' or > setting `debug-on-error' or `debug-on-quit' to non-nil.] I am using 'debug', with debug-on-entry, but only just ten minutes ago discovered edebug, so I'll look into that as well. Thanks again.