From: "David Vanderschel" <DJV1@Austin.RR.com>
Subject: Re: edebug question - context of calling function
Date: Thu, 16 Oct 2003 21:19:17 -0500 [thread overview]
Message-ID: <0tWdnZ-zD5A5zBKiRTvUqg@texas.net> (raw)
In-Reply-To: mailman.1841.1066353965.21628.help-gnu-emacs@gnu.org
"jan" <janmar@iprimus.com.au> wrote in message
news:<mailman.1841.1066353965.21628.help-gnu-emacs@gnu.org>...
> "David Vanderschel" <DJV1@Austin.RR.com> writes:
> > I sometimes put a source breakpoint in my code to catch a particular
> > error condition. When such a conditional breakpoint fires, the
> > actual problem, though recognized in the called function, is often
> > attributable to the calling function. What I want to do then is to
> > look around at the state of the calling function at the time it
> > called the function which invoked edebug. I can instrument the
> > calling function; but, when in the debugger, I cannot see how to pop
> > the context stack so that I can look around at the variables in the
> > calling program. What am I missing?
> If I understand you correctly, you want to walk up the stack and look
> at the local variable in the functions along the way. I had a quick
> look and both edebug and the standard emacs debugger seem to be
> missing this feature. However, it may not be necessary because elisp
> is a dynamically scoped language, for example:
I think you do understand me correctly.
Unfortunately, I often reuse the same local variables
(eg., i, j, x, ...). I was also interested in the
calling context in the sense of "Among multiple
possible invocations in the calling program, which
invocation of of the function which noticed the
condition caused this break."
I guess you are correct that I have to move the logic
which catches the inconsistency up a level. But there
is no one nice place to put it for the bug I am
chasing now.
Regards,
David V.
next prev parent reply other threads:[~2003-10-17 2:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-15 7:18 edebug question - context of calling function David Vanderschel
[not found] ` <mailman.1841.1066353965.21628.help-gnu-emacs@gnu.org>
2003-10-17 2:19 ` David Vanderschel [this message]
2003-10-18 19:59 ` jan
[not found] ` <mailman.1915.1066445382.21628.help-gnu-emacs@gnu.org>
2003-10-24 12:16 ` David Vanderschel
2003-10-24 15:51 ` Stefan Monnier
2003-10-24 18:41 ` David Vanderschel
2003-10-26 3:13 ` jan
[not found] ` <mailman.2431.1067076191.21628.help-gnu-emacs@gnu.org>
2003-10-30 3:38 ` David Vanderschel
2003-10-17 18:35 ` jan
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=0tWdnZ-zD5A5zBKiRTvUqg@texas.net \
--to=djv1@austin.rr.com \
/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).