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

Method stopOnChange

kdevplatform/debugger/variable/variablewidget.cpp:344–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344void VariableTree::stopOnChange()
345{
346 auto* const selectedVariable = this->selectedVariable();
347 if (!selectedVariable || !canStopOnChange(*selectedVariable))
348 return;
349 IDebugSession *session = ICore::self()->debugController()->currentSession();
350 if (session && session->state() != IDebugSession::NotStartedState && session->state() != IDebugSession::EndedState) {
351 session->variableController()->addWatchpoint(selectedVariable);
352 }
353}
354
355#include "moc_variablewidget.cpp"

Callers

nothing calls this directly

Calls 7

selectedVariableMethod · 0.95
canStopOnChangeFunction · 0.85
currentSessionMethod · 0.80
debugControllerMethod · 0.80
stateMethod · 0.45
addWatchpointMethod · 0.45
variableControllerMethod · 0.45

Tested by

no test coverage detected