lilypond-devel
[Top][All Lists]
Advanced

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

Re: Debugging/showing internal stuff?


From: Nicolas Sceaux
Subject: Re: Debugging/showing internal stuff?
Date: Fri, 13 Mar 2009 19:02:37 +0100

Le 13 mars 09 à 18:36, Ian Hulin a écrit :

Hi 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.

you can try that:

-----foo.ly-----
#(module-define! (resolve-module '(guile-user)) 'lilypond-module (current-module))
#(top-repl)
----------------

guile> (set-current-module lilypond-module)
#<directory (guile-user) 22416f0>
guile> parser
#<Lily_parser #<Lily_lexer (#<module 33965e0>) > >
guile> (display-scheme-music #{ a' #})
(make-music
  'SequentialMusic
  'elements
  (list (make-music
          'EventChord
          'elements
          (list (make-music
                  'NoteEvent
                  'duration
                  (ly:make-duration 2 0 1 1)
                  'pitch
                  (ly:make-pitch 0 5 0))))))





reply via email to

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