cvisual-studio-2010output-windowdebug-information

Simple way to send debug information to the Visual Studio 'Output' window


I started a blank project in Visual Studio 2010 to write a C application. How can I send debug information to the Output window (menu Debug -> Windows -> Output )? Is there a relatively simple way to implement TRACE or OutputDebugString or something similar?


Solution

  • OutputDebugString is the way to do it. Stack Overflow question How can I use the TRACE macro in non-MFC projects? contains information how to make something akin to MFC's TRACE macro using OutputDebugString.