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

Method testBreakOnWriteBreakpoint

plugins/debuggercommon/tests/debuggertestbase.cpp:672–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672void DebuggerTestBase::testBreakOnWriteBreakpoint()
673{
674 if (isLldb()) {
675 QSKIP("Skipping... LLDB-MI does not have proper watchpoint support");
676 }
677 auto* const session = createTestDebugSession();
678 TestLaunchConfiguration cfg;
679
680 addDebugeeBreakpoint(25);
681 ActiveStateSessionSpy sessionSpy(session);
682 START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy);
683 QCOMPARE(currentMiLine(session), 25);
684
685 breakpoints()->addWatchpoint("i");
686
687 CONTINUE_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy);
688 QCOMPARE(currentMiLine(session), 23); // ++i; int j = i;
689
690 CONTINUE_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy);
691 QCOMPARE(currentMiLine(session), 25);
692
693 session->run();
694 WAIT_FOR_STATE(session, IDebugSession::EndedState);
695}
696
697void DebuggerTestBase::testBreakOnWriteWithConditionBreakpoint()
698{

Callers

nothing calls this directly

Calls 3

currentMiLineFunction · 0.85
addWatchpointMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected