I know there're guides on the Internet, and here is what I've done so far.
Run DebugView as Administrator. In DebugView, I have checked "Capture Win32"
I have set the following filter keys & restart the computer:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter" /V DEFAULT /t REG_DWORD /d 0xf
reg add "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Debug Print Filter" /v DEFAULT /t REG_DWORD /d 0xFFFFFFFF
I have debugged my app to make sure the OutputDebugString() is indeed executed.
But, the message from OutputDebugString() is still not showed in DebugView (if not debugged with Windbg) and Windbg (if debugged).
User contributions licensed under CC BY-SA 3.0