#6383 Send core output to VS debug window when in foreground mode

This commit is contained in:
Nick Bolton 2018-08-02 19:19:06 +01:00
parent 25c2e360d3
commit 566e2db202
1 changed files with 10 additions and 0 deletions

View File

@ -472,6 +472,16 @@ MSWindowsWatchdog::outputLoop(void*)
if (m_fileLogOutputter != NULL) {
m_fileLogOutputter->write(kINFO, buffer);
}
#if SYSAPI_WIN32
if (m_foreground) {
// when in foreground mode (useful for debugging), send the core
// process output to the VS debug output window.
// we could use the MSWindowsDebugOutputter, but it's really fiddly to so,
// and there doesn't seem to be an advantage of doing that.
OutputDebugString(buffer);
}
#endif
}
}
}