windows - 如何将 Visual Studio 的 “Output” 窗口重定向到 DebugView?

标签 windows visual-studio debugging visual-c++

我正在使用 Visual Studio 2010 编写非托管 C++ 代码。

调试时,使用 OutputDebugString 或 MFC 的 TRACE 宏打印的任何内容都会转到 Visual Studio 的“输出”窗口。

我宁愿在 DebugView 中查看输出,同时仍在 MSVC 调试器下运行。这可能吗?

最佳答案

这是不可能的。无论应用程序在哪个调试器中运行,都会优先处理任何此类消息。当应用程序未在任何调试器中运行时,DebugView 只能拦截消息。

关于windows - 如何将 Visual Studio 的 “Output” 窗口重定向到 DebugView?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3858689/

相关文章:

linux - 使用 Linux 发行版时在 Windows 下隐藏文件/文件夹

c# - 我的 C# 评分程序一直输出相同的结果

visual-studio - 制作 | UWP::使用 Cmake 构建通用 Windows 应用程序

c# - 用字符串拆分字符串时出错

c++ - 更新到 1.30 后,我无法在 Linux 上使用 VS Code 调试项目

linux - 为项目中的 Win 和 Linux 提供 SDL2 包含 header

Java随机崩溃

php - 我如何在 symfony Controller 中使用 Kint Debugger

java - 无法打开调试端口 : java.net.socketexception "Connection refused"- Android Studio

python - "Unable to find a matching set of capabilities"-- 使用 Python 2.7 的 Selenium