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

Method testPendingBreakpoint

plugins/debuggercommon/tests/debuggertestbase.cpp:532–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532void DebuggerTestBase::testPendingBreakpoint()
533{
534 auto* const session = createTestDebugSession();
535 TestLaunchConfiguration cfg;
536
537 addDebugeeBreakpoint(29);
538
539 const auto* const breakpoint =
540 breakpoints()->addCodeBreakpoint(QUrl::fromLocalFile(findSourceFile("debugeeqt.cpp")), 10);
541 QCOMPARE(breakpoint->state(), Breakpoint::NotStartedState);
542
543 const ActiveStateSessionSpy sessionSpy(session);
544 START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy);
545
546 QCOMPARE(breakpoint->state(), Breakpoint::PendingState);
547
548 session->run();
549 WAIT_FOR_STATE(session, IDebugSession::EndedState);
550}
551
552void DebuggerTestBase::testBreakpointsOnNoOpLines()
553{

Callers

nothing calls this directly

Calls 4

findSourceFileFunction · 0.85
addCodeBreakpointMethod · 0.45
stateMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected