kdevplatform/debugger
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.
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.