Can output from OutputDebugString be viewed in Visual Studio's output window?

You had me going on this question for a while. No way! Way.

Project > Properties > Debug tab, turn on the "Enable unmanaged code debugging" checkbox. Renamed to "Enable native code debugging" in later VS versions. With the unmanaged code debugging engine enabled, OutputDebugString() output is now properly intercepted and directed to the Output window.


When debuggging (Debug => Start Debugging F5), the setting Project + Properties, Debug tab, check "Enable unmanaged code debugging" works nicely.

When NOT debugging (Debug => Start Without Debugging CTRL+F5) you mujst use DebugView from the SysInternals library. Download DebugView for Windows v4.76


It might be showing in the "Immediate Window" instead due to a setting:

  • Go to Tools/Options/Debugging/General. Uncheck "Redirect all Output Window text to the Immediate Window"

Or somethig like that.