Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing gdb console in Qt-Creator

Tags:

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

like image 705
Itamar Katz Avatar asked Jan 04 '11 10:01

Itamar Katz


People also ask

How do I open GDB?

Starting your program. Use the run command to start your program under GDB. You must first specify the program name (except on VxWorks) with an argument to GDB (see section Getting In and Out of GDB), or by using the file or exec-file command (see section Commands to specify files).

What command is used to start up GDB?

Use the run command to start your program under gdb. You must first specify the program name (except on VxWorks) with an argument to gdb (see Getting In and Out of gdb), or by using the file or exec-file command (see Commands to Specify Files).

What is GDB in terminal?

Gdb is a debugger for C (and C++). It allows you to do things like run the program up to a certain point then stop and print out the values of certain variables at that point, or step through the program one line at a time and print out the values of each variable after executing each line.


1 Answers

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.

like image 69
polan Avatar answered Oct 12 '22 08:10

polan