How to run gdb commands from qtcreator debugger?
-
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
-
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
-
-
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?
-
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!
-
There are no Views menu under Window anymore in the QtCreator 14, however the Debugger log could be reached this way:
Added for the shake of the posterity as It took me a while to figure this out.
-
C Christian Ehrlicher moved this topic from General and Desktop on