Re: [frogs] How can I output Stream_event variables on the console? |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: Marc Hohl <marc@xxxxxxxxxx>, "frogs@xxxxxxxxxxx" <frogs@xxxxxxxxxxx>
- Subject: Re: [frogs] How can I output Stream_event variables on the console?
- From: Carl Sorensen <c_sorensen@xxxxxxx>
- Date: Wed, 24 Feb 2010 04:26:15 -0700
- Accept-language: en-US
- Acceptlanguage: en-US
- Thread-index: Acq1LqJFA42MFdZ3Qw++IHJkjQyPjAAFYqtY
- Thread-topic: [frogs] How can I output Stream_event variables on the console?
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.
HTH,
Carl
---
----
Join the Frogs!