Accessing gdb console in Qt-Creator

2019-02-16 07:07发布

Is there an access to the gdb console from Qt-Creator? For examining frames, dumping to file, etc. Seems a trivial feature but I couldn't find a clear reference to weather it exists or not.

I am using Qt-Creator 2.0.1 under Ubuntu 9.10

2条回答
ゆ 、 Hurt°
2楼-- · 2019-02-16 07:39

In the current Qt Creator 3.0.0 I found it after switching to the Debugger pane under WindowViewsDebugger Log.

The results display in the machine readable format, which is a bit messy to look at, but still fine since I use this only infrequently.

<53p vsink
>&"p vsink\n"
>~"$3 = {pCppObject_ = 0x0}"
>~"\n"
>53^done
查看更多
Animai°情兽
3楼-- · 2019-02-16 07:51

Window->Views->Debugger Log. You can type commands in the left pane and send a line to gdb using Ctrl+Enter. More info here: http://qt-project.org/doc/qtcreator-3.2/creator-debug-mode.html#directly-interacting-with-native-debuggers

For examining frames using the "normal" views, especially the "Watchers" part of the Locals and Watchers view should probably be the better approach.

查看更多
登录 后发表回答