Neil Jerram <[EMAIL PROTECTED]> writes:
> It sounds like what you might in fact want is a report of the
> evaluation of each subexpression within mkmatrix. In that case, the
> correct incantation would be something like this:
[complex incantations suppressed]
It occurred to me later that I should also point out a much simpler
option. If you are just looking for something analogous to the GDB
example that you gave, you can get this much more easily as the
following session trace shows.
[EMAIL PROTECTED]:~$ /usr/bin/guile -q
guile> (use-modules (ice-9 debugger) (ossau ice-9-debugger-extensions) (ossau
breakpoints))
guile> (load "matrix.scm")
guile> (break-in 'mkmatrix #:behaviour debug-trap)
#<<break-in> 808cb70>
guile> (do-main 4)
This is the Guile debugger -- for help, type `help'.
There are 3 frames on the stack.
Frame 2: [mkmatrix]
debug> next
Frame 3: (let ((x 1)) (quote this-is-a-matric))
debug> info frame
Stack frame: 3
This frame is an evaluation.
The expression being evaluated is:
matrix.scm:3:3:
(let ((x 1)) (quote this-is-a-matric))
debug> next
Frame 3: (quote this-is-a-matric)
debug> bt
In unknown file:
?: 0* [primitive-eval (do-main 4)]
In standard input:
5: 1* [do-main 4]
In matrix.scm:
7: 2 [mkmatrix]
...
4: 3 (quote this-is-a-matric)
debug>
Or you can use the Emacs interface (GDS), by using (ossau gds-client)
instead of (ice-9 debugger) and (ossau ice-9-debugger-extensions), and
changing debug-trap to gds-debug-trap.
Hope this helps,
Neil
_______________________________________________
Guile-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/guile-user