Itamar Katz
Itamar Katz

Reputation: 9645

Accessing gdb console in Qt-Creator

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

Upvotes: 23

Views: 10498

Answers (2)

user7610
user7610

Reputation: 28831

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

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

Upvotes: 0

polan
polan

Reputation: 286

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.

Upvotes: 27

Related Questions