This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How does the debugger work ?


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).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]