调试器日志
您可以在Debugger Log 视图中查看调试输出,以排除调试器故障。
如果调试输出被发送到系统日志,请转到首选项>Debugger >General ,然后选择Force logging to console 。
右键单击视图选择以下操作:
直接与调试器交互
可以使用Debugger Log 视图的左窗格直接与调试器的命令行交互。
选择Ctrl+Enter将文本光标下一行的内容发送到调试器。或者在Command 字段中输入命令。Debugger Log 视图的右侧窗格显示命令输出。
注: 通常情况下,您并不需要此功能,因为Qt Creator 提供了更好的处理方法。例如,您可以在 "表达式"视图中评估表达式,而不是在命令行中使用 GDBprint
命令。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.