mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-10 21:56:13 +08:00
#6383 Send core output to VS debug window when in foreground mode
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user