I have a Windows Forms app and print a message using OutputDebugString() whenever a button is pressed. However I don't see any output in the output or immediate window in Visual Studio. Stepping through the program shows OutputDebugString() is executed. I tested OutputDebugString() in a regular console app and it worked, so what could be the problem?