MCPcopy Create free account
hub / github.com/KDE/kdevelop / addWatch

Method addWatch

plugins/debuggercommon/mivariablecontroller.cpp:188–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
187
188void MIVariableController::addWatch(KDevelop::Variable* variable)
189{
190 // FIXME: should add async 'get full expression' method
191 // to MIVariable, not poke at varobj. In that case,
192 // we will be able to make addWatch a generic method, not
193 // gdb-specific one.
194 if (auto* gv = qobject_cast<MIVariable*>(variable)) {
195 debugSession()->addCommand(VarInfoPathExpression,
196 gv->varobj(),
197 this, &MIVariableController::addWatch);
198 }
199}
200
201void MIVariableController::addWatchpoint(KDevelop::Variable* variable)
202{

Callers

nothing calls this directly

Calls 6

variableCollectionFunction · 0.85
hasFieldMethod · 0.80
literalMethod · 0.80
addCommandMethod · 0.60
isEmptyMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected