Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get messages to DebugView

I need to write application that could create debug messages that could be displayed in DebugView. For this purpose I'm using code:

int main ()
{
    OutputDebugString(L"hello");
    return 0;
}

But no messages are displayed in DebugViewer.

Where is problem?

like image 395
vico Avatar asked Dec 08 '25 19:12

vico


1 Answers

DebugView won't receive debug messages if there is already a debugger the receives them. If you run your process under the IDE's debugger, then it receives these messages. Either:

  • View the debug messages in the IDE's window, or
  • Run the process outside the debugger and view the messages in DebugView.
like image 185
David Heffernan Avatar answered Dec 10 '25 08:12

David Heffernan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!