• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/debugger

Classes | Functions
KDevelop Namespace Reference

Classes

class  AsyncTreeView
 
class  Breakpoint
 
class  BreakpointDetails
 
class  BreakpointModel
 
class  BreakpointWidget
 
class  FrameStackModel
 
class  FramestackWidget
 
class  IBreakpointController
 
class  IDebugSession
 
class  IFrameStackModel
 
class  IVariableController
 
class  Locals
 
class  PathMappings
 
class  PathMappingsWidget
 
class  TooltipRoot
 
class  TreeItem
 
class  TreeModel
 
class  Variable
 
class  VariableCollection
 
class  VariableProvider
 
class  VariableSortProxyModel
 
class  VariablesRoot
 
class  VariableToolTip
 
class  VariableTree
 
class  VariableWidget
 
class  Watches
 

Functions

IDebugSession * currentSession ()
 
IDebugSession::DebuggerState currentSessionState ()
 
bool hasStartedSession ()
 
VariableCollection * variableCollection ()
 

Detailed Description

The variables widget is passive, and is invoked by the rest of the code via two main Q_SLOTS:

  • slotDbgStatus
  • slotCurrentFrame

The first is received the program status changes and the second is received after current frame in the debugger can possibly changes.

The widget has a list item for each frame/thread combination, with variables as children. However, at each moment only one item is shown. When handling the slotCurrentFrame, we check if variables for the current frame are available. If yes, we simply show the corresponding item. Otherwise, we fetch the new data from debugger.

Fetching the data is done by emitting the produceVariablesInfo signal. In response, we get slotParametersReady and slotLocalsReady signal, in that order.

The data is parsed and changed variables are highlighted. After that, we 'trim' variable items that were not reported by gdb – that is, gone out of scope.

Function Documentation

◆ currentSession()

IDebugSession* KDevelop::currentSession ( )

Definition at line 50 of file variablecollection.cpp.

◆ currentSessionState()

IDebugSession::DebuggerState KDevelop::currentSessionState ( )

Definition at line 55 of file variablecollection.cpp.

◆ hasStartedSession()

bool KDevelop::hasStartedSession ( )

Definition at line 61 of file variablecollection.cpp.

◆ variableCollection()

VariableCollection* KDevelop::variableCollection ( )

Definition at line 67 of file variablewidget.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Mar 3 2021 00:36:55 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevplatform/debugger

Skip menu "kdevplatform/debugger"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal