1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-24 12:20:20 +02:00

Manual debugging and refactoring work.

This commit is contained in:
Neil Jerram 2002-04-20 19:22:29 +00:00
parent 2a1d8d8568
commit a6d4acaa59
8 changed files with 136 additions and 140 deletions

View file

@ -25,6 +25,13 @@ Return @code{#t} if @var{obj} is a debug object.
@section Capturing the Stack or Innermost Stack Frame
When an error occurs in a running program, or the program hits a
breakpoint, its state at that point can be represented by a @dfn{stack}
of all the evaluations and procedure applications that are logically in
progress at that time, each of which is known as a @dfn{frame}. The
programmer can learn more about the program's state at the point of
interruption or error by inspecting the stack and its frames.
@deffn {Scheme Procedure} make-stack obj . args
@deffnx {C Function} scm_make_stack (obj, args)
Create a new stack. If @var{obj} is @code{#t}, the current
@ -183,6 +190,17 @@ Return the environment of the memoized expression @var{m}.
@end deffn
@section Starting a New Stack
@deffn {Scheme Syntax} start-stack id exp
Evaluate @var{exp} on a new calling stack with identity @var{id}. If
@var{exp} is interrupted during evaluation, backtraces will not display
frames farther back than @var{exp}'s top-level form. This macro is a
way of artificially limiting backtraces and stack procedures, largely as
a convenience to the user.
@end deffn
@c Local Variables:
@c TeX-master: "guile.texi"
@c End: