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

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


-----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:
> > Hello,
> > 
> > assuming that I define
> > 
> > Stream_event *event = note_events_[i];
> > 
> > (within a for-loop, of course)
> > 
> > how can I print the contents of "event" on the console?
> > I will trace some variables to get an idea of whats
> > going on inside the loop; I didn't need some fancy well-formatted
> > output.
> 
> IIRC, you can get a display on the console by using gdb with the .gdbinit
> file listed in the CG, section 9.6.2, setting a breakpoint in your routine,
> and issuing the following command from the console when you've reached the
> breakpoint:
> 
> pmusic event
> 
> Once you've verified that this works, you could also execute those same
> Scheme procedures by using scm_call_1 from the C++ code if you didn't want
> to go through the debugger.

Or you can simply call 
  int Prob::print_smob (SCM smob, SCM port, scm_print_state*)
(Stream_event is a class derived from Prob)


Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, reinhold@xxxxxxxxxxxxx, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFLhRvZTqjEwhXvPN0RAuWnAJ0QNFwDUt21z7V/43YCL2Qt+F/nNwCcDefK
sTn4XXBhI36VlDUPPXALlmY=
=Lkj9
-----END PGP SIGNATURE-----

---
----
Join the Frogs!


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