在 qtcreator 调试器中发送 gdb 命令

Send gdb commands in qtcreator debugger

我最熟悉 gdb 命令行,并且比 qtcreator 的 GUI 调试器更喜欢它。 qtcreator 文档 (https://doc.qt.io/qtcreator/creator-debug-mode.html#directly-interacting-with-native-debuggers) 是这样说的: "In Qt Creator, you can use the left pane of the Debugger Log view for that purpose. When you press Ctrl+Enter, the contents of the line under the text cursor are sent directly to the native debugger. Alternatively, you can use the line edit at the bottom of the view."

但是当我查看 "Debugger log view" 的左窗格时,我没有在底部看到 "line edit"。我也不明白 "contents of the line under the text cursor" 是什么意思。请参阅附图。有人可以帮忙吗?

我是运行QT Creator 4.8.1

我在你的屏幕截图中没有看到调试器日志。我从 Window 菜单,Views 子菜单中得到它,它有可检查的项目 Debugger Log .

在 Windows、Qt Creator 4.9.0、MinGW Qt 工具链下测试,一个在调试模式下运行的简单测试项目。

这是一个屏幕截图,显示了在哪里可以找到它,以及在 print argc 停在 [= 的第一行后它应该是什么样子的11=]: