| 342 | } |
| 343 | |
| 344 | void 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" |
nothing calls this directly
no test coverage detected