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

Method updateDebuggerState

kdevplatform/shell/debugcontroller.cpp:449–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449void DebugController::updateDebuggerState(IDebugSession::DebuggerState state, IDebugSession *session)
450{
451 Q_UNUSED(session);
452 if((Core::self()->setupFlags() & Core::NoUi)) return;
453
454 qCDebug(SHELL) << state;
455 switch (state) {
456 case IDebugSession::StoppedState:
457 case IDebugSession::NotStartedState:
458 case IDebugSession::StoppingState:
459 qCDebug(SHELL) << "new state: stopped";
460 stateChanged(QStringLiteral("stopped"));
461 setContinueStartsDebug(true);
462 //m_restartDebugger->setEnabled(session->restartAvailable());
463 break;
464 case IDebugSession::StartingState:
465 case IDebugSession::PausedState:
466 qCDebug(SHELL) << "new state: paused";
467 stateChanged(QStringLiteral("paused"));
468 setContinueStartsDebug(false);
469 //m_restartDebugger->setEnabled(session->restartAvailable());
470 break;
471 case IDebugSession::ActiveState:
472 qCDebug(SHELL) << "new state: active";
473 stateChanged(QStringLiteral("active"));
474 setContinueStartsDebug(false);
475 //m_restartDebugger->setEnabled(false);
476 break;
477 case IDebugSession::EndedState:
478 qCDebug(SHELL) << "new state: ended";
479 stateChanged(QStringLiteral("ended"));
480 setContinueStartsDebug(true);
481 //m_restartDebugger->setEnabled(false);
482 break;
483 }
484 if (state == IDebugSession::PausedState && ICore::self()->uiController()->activeMainWindow()) {
485 ICore::self()->uiController()->activeMainWindow()->activateWindow();
486 }
487}
488
489void DebugController::setContinueStartsDebug(bool startsDebug)
490{

Callers

nothing calls this directly

Calls 4

setupFlagsMethod · 0.80
uiControllerMethod · 0.80
activateWindowMethod · 0.80
activeMainWindowMethod · 0.45

Tested by

no test coverage detected