Re: [frogs] Help with the Guile debugger

[ Thread Index | Date Index | More lilynet.net/frogs Archives ]


On 07/01/10 23:55, Trevor Daniels wrote:

Patrick McCarty wrote Thursday, January 07, 2010 7:10 PM


At the prompt, if I manually invoke "(use-modules (scm
guile-debugger))", then the bindings (set-break!, etc.) become
visible.

This seems to be a viable way to debug Scheme code.  I'd be happy
to amend the CG to say this, but there may be more problems.
If I set a break-point and enter (quit) the debugger is entered at the
break-point as it should be.  All the debug commands seem to work
fine, except for finish.  This produces the error:

Internal debugger error:
usr/share/guile/1.8/ice-9/debugger/command-loop.scm:51:6:
In procedure throw in expression (apply throw key ...):
usr/share/guile/1.8/ice-9/debugger/command-loop.scm:51:6:
Unbound variable: trace-trap

Not sure if this is relevant or due to my lack of familiarity with
the guile debugger.

It's a guile bug:
Line 41 of /usr/share/guile/1.8/ice-9/debugging/ice-9-debugger-extensions.scm should say

(use-modules (ice-9 debugging steps) (ice-9 debugging trace))

This fixes the crash for finish.

Cheers,

Ian

---
----
Join the Frogs!


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/