How to run gdb commands from qtcreator debugger?
-
wrote on 15 May 2019, 23:02 last edited by
I want to run gdb commands directly from qtcreator debugger. The qtcreator documentation (https://doc.qt.io/qtcreator/creator-debug-mode.html#directly-interacting-with-native-debuggers) says this:
"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."But when I look at the left pane of the "Debugger log view" I do not see a "line edit" at the bottom. I also don't understand what they mean by the "contents of the line under the text cursor". Please see attached image. Can anyone help?
-
I want to run gdb commands directly from qtcreator debugger. The qtcreator documentation (https://doc.qt.io/qtcreator/creator-debug-mode.html#directly-interacting-with-native-debuggers) says this:
"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."But when I look at the left pane of the "Debugger log view" I do not see a "line edit" at the bottom. I also don't understand what they mean by the "contents of the line under the text cursor". Please see attached image. Can anyone help?
I am running QT Creator 4.8.1
-
-
wrote on 16 May 2019, 16:28 last edited by
I do see Windows->Output Panes->Debugger Console (not called "Debugger Log" in this version - is it the same thing?) - that is already open, see the image attached to this post. But I do not see anywhere to enter a gdb command in either of those Debugger Console panes. The left pane (referred to in the user guide) just shows a list of break points, no text area to enter commands. Where can I find that command line input area?
-
I do see Windows->Output Panes->Debugger Console (not called "Debugger Log" in this version - is it the same thing?) - that is already open, see the image attached to this post. But I do not see anywhere to enter a gdb command in either of those Debugger Console panes. The left pane (referred to in the user guide) just shows a list of break points, no text area to enter commands. Where can I find that command line input area?
If it's grayed out, then click the Debug mode on the left mode selector first.
(I have 4.9, so the naming is slightly different, but it should be nearly the same if 4.8)
-
Here:
If it's grayed out, then click the Debug mode on the left mode selector first.
(I have 4.9, so the naming is slightly different, but it should be nearly the same if 4.8)
-
@aha_1980 - my version 4.8.1 only has "Views->Debugger Log", but I don't see the gdb command input anywhere in the displayed Debugger Log panes - do you see gdb command input in version 4.9? Thanks!
-
wrote on 21 Aug 2024, 06:31 last edited by martonmiklos
-
C Christian Ehrlicher moved this topic from General and Desktop on 21 Aug 2024, 06:40