unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: using the debugger
Date: Fri, 08 Apr 2011 12:33:17 +0100	[thread overview]
Message-ID: <87ipup3rlu.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 4D9EF0FB.4080709@mousecar.com

On Fri, Apr 08 2011, ken wrote:

> On 04/08/2011 07:18 AM Eric Abrahamsen wrote:
>> I'm just learning to use the emacs debugger, and wish I'd done so a lot
>> earlier. There's one thing I can't figure out how to do. In many cases,
>> 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.
>> 
>> I thought "u" might be there to unstar a particular subroutine and let
>> me jump straight to its return, but that doesn't seem to be the case, or
>> else I'm using it wrong -- in any case I still have to walk through all
>> the gory internals of all secondary functions. Can someone tell me how I
>> can skip them?
>> 
>> Thanks!
>> Eric
>
> Just don't instrument the functions you don't want to step through.  If
> a function is already instrumented, undo that by evaluating it in the
> normal way, i.e., place the point at the end of it and do C-x C-e.

In this case I'm using the debugger to find out why a particular
function produces an error. I'm instrumenting this top level function
and then stepping through it using "d" to see what's going on, but in
the middle there's, say, a ibus related function call that I know is
incredibly complicated, and also isn't the source of the error. So I'd
like to just hop over that particular ibus call and continue on with the
body of the function. Hope that's a clearer explanation…

Thanks!
Eric




  reply	other threads:[~2011-04-08 11:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-08 11:18 using the debugger Eric Abrahamsen
2011-04-08 11:26 ` ken
2011-04-08 11:33   ` Eric Abrahamsen [this message]
2011-04-08 14:03 ` Drew Adams
2011-04-08 15:33   ` Eric Abrahamsen
     [not found] ` <mailman.10.1302271417.11168.help-gnu-emacs@gnu.org>
2011-04-08 17:30   ` rusi
2011-04-08 18:16     ` Drew Adams
2011-04-08 22:14     ` Tim X
2011-04-09  0:39       ` Perry Smith
     [not found]     ` <mailman.3.1302286616.22287.help-gnu-emacs@gnu.org>
2011-04-24  1:07       ` David Combs

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=87ipup3rlu.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).