在QtCreator调试中没有应用程序输出 [英] No application output in QtCreator debug

查看:1780
本文介绍了在QtCreator调试中没有应用程序输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用QBCreator 2.8在Win7下用CDB调试器,我看不到
应用程序输出选项卡所有我的fprintf(stdout)东西!



我试过:

  fprintf(stderr,...); 

fprintf(stdout,...); fflush(stdout);

没有任何事情发生。
在此期间,如果我检查运行终端选项,它的工作原理!?



虽然我注意到所有的输出都去调试器日志! ?



任何想法?

解决方案

作为解决方法,您可以启用CDB控制台中的输出:tools / options / debugger / cdb然后选中使用CDB控制台。
要显示调试器,请右键单击某个窗口标题并选择调试器日志。
您还可以右键单击调试器日志视图以禁用详细日志。
Btw,我还注意到,当您附加到正在运行的进程而不是从qtcreator启动时,标准应用程序输出窗口工作正常。


With QtCreator 2.8 under Win7 with CDB debugger, I cannot see in the Application Output tab all my fprintf(stdout) stuff !?

I tried:

fprintf(stderr, "...");

fprintf(stdout, "..."); fflush(stdout);

Nothing happens. In the meantime, If I check the "Run in terminal" option, it works !?

Although I noticed that all the output go to debugger log !?

Any idea ?

解决方案

As a workaround you can enable the output in CDB console: tools/options/debugger/cdb then check "Use CDB console". To show the debugger, right click on some window header and select "Debugger Log". You may also right click on the debugger log view to disable the verbose log. Btw, I also noticed that the standard application output window works well when you "attach to the running process" instead of starting it from qtcreator.

这篇关于在QtCreator调试中没有应用程序输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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