lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging/showing internal stuff?


From: Ian Hulin
Subject: Re: Debugging/showing internal stuff?
Date: Fri, 13 Mar 2009 17:36:18 +0000
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Hi Nicolas,

Nicolas Sceaux wrote:

Le 10 mars 09 à 10:22, David Kastrup a écrit :

As some sort of progress,

'#{ \notemode { c e g } #}

puts out

(let ((parser-clone (ly:parser-clone parser))) (parse-string-result " \\notemode { c e g } " parser-clone))

but since parser is #f, without quoting one gets

ERROR: In procedure ly:parser-clone:
ERROR: Wrong type argument in position 1 (expecting Lily_parser): #f
ABORT: (wrong-type-arg)

Not sure where to go from there.


----- test.ly -----
#(display (current-module))
#(top-repl)
-------------------

==>

#<module 33965d0>
guile> (current-module)
#<directory (guile-user) 22416f0>
guile>

So after invoking (top-repl), we are not the same module as the one
used in the input file. That's why `parser' is not bound to an actual
parser object. In the past (the page that was refered to was written
at the time of LilyPond 2.5), the modules of the input files were named
something like anonymous-ly-module-0, anonymous-ly-module-1, etc, so it
was easy to change to the appropriate module, but that is not the case
anymore: the modules used by input files are not named.

nicolas

So how do you do interactive debugging if you're trying to write (or modify) Scheme code for Lilypond. I'd be interested to know as an apprentice Frog.

Salut!

Ian





reply via email to

[Prev in Thread] Current Thread [Next in Thread]