Re: [frogs] Help with the Guile debugger

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


This is a multi-part message in MIME format.
Hi Trevor,
Firstly a Happy New Year/ Glückliches NeuJahr/ Bonne Nouvelle Année/ een vrolijke nieuwe jaar/ un feliz año nuevo

to all on the Frogs List.

Attached is a patch with some changes to the guile debugger code and the documentation (CG Chapter 8).

Please test-drive and review.

Cheers,

Ian

On 28/12/09 12:53, Trevor Daniels wrote:
Hi Ian

Thanks for this - I'll give your suggestions a spin later today. And
thanks for  confirming the problem is a general one, not down to
my incompetence.

Carl's already copied your note to -bug, so presumably Valentin
will pick it up and add it to the tracker.

Trevor

----- Original Message ----- From: "Ian Hulin" <ian@xxxxxxxxxxxx>
To: "Trevor Daniels" <t.daniels@xxxxxxxxxxx>
Cc: <frogs@xxxxxxxxxxx>
Sent: Sunday, December 27, 2009 5:09 PM
Subject: Re: [frogs] Help with the Guile debugger


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




______________________________________________ This email has been scanned by Netintelligence http://www.netintelligence.com/email









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