This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: How does the debugger work ?
- To: Thierry Bezecourt <thbz at free dot fr>
- Subject: Re: How does the debugger work ?
- From: Mikael Djurfeldt <mdj at mdj dot nada dot kth dot se>
- Date: 13 Feb 2000 22:47:08 +0100
- Cc: guile at sourceware dot cygnus dot com
- Cc: djurfeldt at nada dot kth dot se
- References: <38A564E6.479CE7B3@worldnet.fr>
Thierry Bezecourt <thbz@free.fr> writes:
> 1/ The documentation in CVS (guile-ref) says that it is possible to
> "Execute a program or function one step at a time", but of course does
> not say how. So, what is the command to do that ?
This is not yet implemented.
> 2/ Is is possible to set breakpoints ? If yes, what kind of
> breakpoints, and what are the commands ?
No.
> 3/ The (trace) function is very useful, but it cannot be used for a
> function which is defined in a module and not exported. Am I right ?
> Is there a work-around (for example a hack to access internal functions,
> since other functions such as backtrace can access these functions) ?
The trace function works for any function. The problem for a function
which is internal for some module is not connected to `trace' but
rather to how to access the procedure. You can for example do it with
local-ref. To trace `foo' in (my module):
(trace (local-ref '(app modules my module foo)))
> It was only after a long time that I found Chris Hanson's debugger
> (debug), which is very useful to inspect the stack when receiving an
> error. So bad there is absolutely no mention about it in guile-ref (I
> know there is such a mention in the NEWS file, but who remembers what
> was in the NEWS file six months after the installation of a new version
> ?). I may provide a patch to appendices.texi with one line about that
> debugger and the answers to the above questions.
The debugger is not mentioned because it is not yet complete (and
because when it was added, it was fairly untested: I wanted it to be
used first in a smaller circle of people before announcing it).