在Windows调试哪里去标准错误? [英] When debugging on Windows where does stderr go?

查看:113
本文介绍了在Windows调试哪里去标准错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试调试程序在Windows上我似乎无法找到在哪里STDERR输出我推是怎么回事。如何让我的stderr输出的举行?是否有一个调试器级别设置(MSVC 9)我可以改变到stderr重定向到UI的某些部分?

When trying to debug a program on Windows I can't seem to find where the output I push to stderr is going. How do I get a hold of my stderr output? Is there a debugger-level setting (MSVC 9) I can change to redirect stderr to some part of the UI?

更新:我没有看过成 TRACE 的OutputDebugString ,而code群是跨平台,使特定平台的API,而不是完全关闭表,是次要的符合标准的解决方案。

Update: I have not looked into TRACE or OutputDebugString, but the code base is cross-platform, so platform-specific APIs, while not totally off the table, are secondary to a standards-compliant solution.

推荐答案

当你有一个GUI程序stderror应该在Visual Studio中的输出窗口显示出来。如果你想有输出在输出去there.look你可以打开一个新的控制台窗口。见我的回答<一个href=\"http://stackoverflow.com/questions/1343304/open-dos-window-and-spew-debug-messages-from-dll\">this问题。了解详情。

When you have a GUI process stderror should show up in the output window in visual studio. You can open a new console window if you want to have the output go there.look at the output. See my answer to this question. for details.

这篇关于在Windows调试哪里去标准错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆