Re: [frogs] Help with the Guile debugger

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


Hi Trevor,

On 18/12/09 00:35, Trevor Daniels wrote:
I've got to the stage in writing code where I need
to use the Guile debugger, but I find the instructions
in the CG:

http://kainhofer.com/~lilypond/Documentation/contributor/debugging-lilypond..html#debugging-lilypond

don't work for me.  Here's what happens.

Compiling a ly program with debugging info is fine,
and after I've added \include "guile-debugger.ly"
to my test program it drops into the guile prompt
as it should.  So far so good.  But when I enter
the (break! ...) command the response is:

GNU LilyPond 2.13.10
Processing `test1.ly'
Parsing...guile> (break! tab-duration-formatter)
ERROR: Unbound variable: break!
ABORT: (unbound-variable)
guile>

But if I enter the commands contained in
guile-debugger.ly manually at the guile prompt
everything works as it should and I can set
breakpoints.

I guess I'm doing something silly or missing
something obvious, but I can't see it.  Can anyone
help?

TIA, Trevor


1) Can reproduce your findings
2) I'm investigating
3) I'm looking at a 0.2 of this using a module in scm

This would mean you could do
<In file your-source.ly>
lily code
\include "guile-debugger.ly"

<In file your-scheme.scm>
#(set-break! your-procedure)
#(set-trace-subtree! your-procedure
scheme code


Then you'd do

$ lilypond your-source.ly
Parsing...
guile> (quit)
This is the Guile debugger -- for help, type `help'.
There are nn frames on the stack.

Frame nn at your-source.ly:xx:y
        [your-procedure args]
debug>

Please could you log a tracker (or ask Valentin to do it) so we can log that I'm working on this?

Cheers,
Ian



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