# Getting information out of a non-debug version of a JUCE application

**URL:** <https://forum.juce.com/t/getting-information-out-of-a-non-debug-version-of-a-juce-application/15298>\
**Category:** Windows\
**Created:** [August 11, 2015, 7:30pm UTC](https://forum.juce.com/t/getting-information-out-of-a-non-debug-version-of-a-juce-application/15298 "2015-08-11T19:30:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeffrey-Terrell](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jeffrey-Terrell](https://forum.juce.com/u/Jeffrey-Terrell)\
**Post date:** [August 11, 2015, 7:30pm UTC](https://forum.juce.com/t/getting-information-out-of-a-non-debug-version-of-a-juce-application/15298/1 "2015-08-11T19:30:02Z")

</div>

In working my way through part 2 of tutorial 3, I find that I need to output some debug information about a&nbsp;MIDI note in the processBlock function of an audio processor.

I've stumbled across the DBG macro and find that I can output most of the information I need, provided&nbsp;I run the debug version of the JUCE Plugin Host in Visual Studio.

However, what I really want to do is run the non-debug version of the JUCE Plugin Host, i.e.&nbsp;Plugin&nbsp;Host.exe, from a command line, and see the output produced by the tutorial 3 plugin&nbsp;in the command window.

Now, I appreciate that the DBG macro won't do that for me but I was surprised that neither cout nor cerr made it out. In saying that, I'm fully aware that it's probably taboo using cout and cerr in a function like processBlock, particularly as the context in which it runs is undefined. However, I half expected something to be output, even if&nbsp;the&nbsp;plugin&nbsp;crashed shortly thereafter.

This&nbsp;particular problem is an example of a more general issue.

What's the recommend procedure for&nbsp;getting information out&nbsp;of a non-debug version of&nbsp;a JUCE application?

---

<div class="post-metadata">

**Author:** ![railjonrogut](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/railjonrogut/32/505_2.png) [@railjonrogut](https://forum.juce.com/u/railjonrogut)\
**Post date:** [August 11, 2015, 7:36pm UTC](https://forum.juce.com/t/getting-information-out-of-a-non-debug-version-of-a-juce-application/15298/2 "2015-08-11T19:36:51Z")

</div>

[http://learn.juce.com/doc/classFileLogger.php](http://learn.juce.com/doc/classFileLogger.php)

Rail
