Re: [frogs] How can I output Stream_event variables on the console?

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


Carl Sorensen schrieb:

On 2/24/10 12:28 PM, "Marc Hohl" <marc@xxxxxxxxxx> wrote:

Hello Reinhold, hello Carl,

Reinhold Kainhofer schrieb:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Mittwoch, 24. Februar 2010 12:26:15 schrieb Carl Sorensen:
On 2/24/10 1:51 AM, "Marc Hohl" <marc@xxxxxxxxxx> wrote:
How can I set a breakpoint?

Start by running gdb for lilypond:

gdb lilypond

at the gdb prompt, set a breakpoint:

b Class::function
(with Class::function replaced by the actual routine you want to stop in)

or
b sourcefile.cc:line

where sourcefile.cc is the name of the source file of the code you're trying
to test (no lily/ is necessary) and line is the line number.

Once you have your breakpoint set, run the code

run myfile.ly

lilypond will then run, and stop at the breakpoint.

Once it's stopped at the breakpoint, use pmusic to print the music event.
I see. Thanks for the detailed explanation. I read through CG 9.6.2 several times without getting a glimpse. And now I see that the first commands in .gdbinit do exactly the same, i.e.
defining breakpoints ("b" stands for "breakpoint", well sure).

Should this information be included in 9.6.2? Probably not, because most people who want
to do some C++ hacking are familiar enogh with this stuff.
[...]


I'm sorry to say, but at the moment I am writing C stuff by looking at some
engraver files and copy/paste everything into my file that looks as if
it could
work. That's not really satisfying, but I try to learn it that way.

Ouch, that's really hard.  Even if you have the right idea, the syntax of
C++ can be so picky that you get errors from bad syntax.

Perhaps you could post some test code, and get some feedback on it.
I have Bjarne Stroustrup's C++ book on my desk, but 720 pages are a lot of stuff,
and it looks as if the book is mostly helpful to poeple who have already
some (more) experience in writing bigger projects in C.

I started uploading patches to rietveld, and from time to time, I will update the files and include comments describing what I want to achieve if I can't get it
to work.

Thanks for your patience ...

Marc
Thanks,

Carl




---
----
Join the Frogs!


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