[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Debugging/showing internal stuff?
From: |
David Kastrup |
Subject: |
Re: Debugging/showing internal stuff? |
Date: |
Sun, 15 Mar 2009 16:29:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
Nicolas Sceaux <address@hidden> writes:
> 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))))))
I think that some version of this trick should definitely make it into
the manual, propably in lilypond-internals?
--
David Kastrup
- Debugging/showing internal stuff?, David Kastrup, 2009/03/08
- Re: Debugging/showing internal stuff?, Valentin Villenave, 2009/03/09
- Re: Debugging/showing internal stuff?, David Kastrup, 2009/03/10
- Re: Debugging/showing internal stuff?, Nicolas Sceaux, 2009/03/10
- Re: Debugging/showing internal stuff?, Carl Sorensen, 2009/03/13
- Re: Debugging/showing internal stuff?, Ian Hulin, 2009/03/13
- Re: Debugging/showing internal stuff?, Nicolas Sceaux, 2009/03/13
- Re: Debugging/showing internal stuff?,
David Kastrup <=
- Re: Debugging/showing internal stuff?, Carl Sorensen, 2009/03/26