Accessing gdb console in Qt-Creator

后端 未结 2 335
南旧
南旧 2021-01-07 18: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

相关标签:
2条回答
  • 2021-01-07 18:31

    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.

    0 讨论(0)
  • 2021-01-07 18:38

    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
    
    0 讨论(0)
提交回复
热议问题