无法在 Qt Creator 中检索调试输出
问题描述:
在 Windows 上的 Qt Creator 中,qDebug()
语句不起作用,并且在输出窗口中出现以下消息:
In Qt Creator on Windows, qDebug()
statements don't work, and the following message appears in the output window:
无法检索调试输出.
如何修复?
答
如果有多个 Qt Creator 实例处于活动状态,则会出现此问题.要解决这个问题,只需关闭 Qt Creator 的所有其他实例,它应该可以工作.
This problem can show up if more than one instance of Qt Creator is active. To fix the issue, simply close all the other instances of Qt Creator and it should work.