| 415 | } |
| 416 | |
| 417 | void DebuggerTestBase::testBreakpoint() |
| 418 | { |
| 419 | auto* const session = createTestDebugSession(); |
| 420 | TestLaunchConfiguration cfg; |
| 421 | |
| 422 | auto* const breakpoint = addDebugeeBreakpoint(30); |
| 423 | QCOMPARE(breakpoint->state(), Breakpoint::NotStartedState); |
| 424 | |
| 425 | ActiveStateSessionSpy sessionSpy(session); |
| 426 | START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy); |
| 427 | |
| 428 | QCOMPARE(breakpoint->state(), Breakpoint::CleanState); |
| 429 | QCOMPARE(currentMiLine(session), 30); |
| 430 | |
| 431 | STEP_INTO_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy); |
| 432 | STEP_INTO_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy); |
| 433 | |
| 434 | session->run(); |
| 435 | WAIT_FOR_STATE(session, IDebugSession::EndedState); |
| 436 | QCOMPARE(breakpoint->state(), Breakpoint::NotStartedState); |
| 437 | } |
| 438 | |
| 439 | void DebuggerTestBase::testDisableBreakpoint() |
| 440 | { |
nothing calls this directly
no test coverage detected