Skip to content

Instantly share code, notes, and snippets.

@retorillo
Last active July 27, 2017 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save retorillo/b31e4dfd11b438bd68dbbd3868e3173e to your computer and use it in GitHub Desktop.
Save retorillo/b31e4dfd11b438bd68dbbd3868e3173e to your computer and use it in GitHub Desktop.

How to display OutputDebugMessage-output without Visual Studio

According of my attempt, windbg could not accomplish this task. dbgview is one of alternative.

dbgview is not included to common SDK or Devtools. Can download from: https://technet.microsoft.com/en-us/sysinternals/bb896647.aspx

To use, run dbgview.exe and configure its filter, finally run debug target application. For modern Windows, must run dbgview.exe as Administrator, otherwise cannot receive debug messages from common applications.

Note that OutputDebugMessage (https://msdn.microsoft.com/en-us/library/windows/desktop/aa363362(v=vs.85).aspx) seems to work fine without debug configuration. (/Zi, /DEBUG) So, should do like this for release build:

#ifdef DEBUG
  OutputDebugMessage(L"debug message")
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment