Copy OutputDebugPrintf() from master.
Check exception at interface boundary (close gh-11).
Use OutputDebugPrintf() instead of OutputDebugString().