Skip to content

Rust/Windows: continue_execution re-stops at the same breakpoint (never advances without a step_over) #255

Description

@debugmcpdev

Context

Found while live-verifying PR #254 on Windows (CodeLLDB 1.11.8, MSVC-built example with LLDB_USE_NATIVE_PDB_READER=1).

Problem

With a breakpoint at examples/rust/hello_world/src/main.rs:26, once the session is paused at that breakpoint, continue_execution succeeds (success: true) but the session immediately re-stops at the same breakpoint (same line, same threadId, stopReason: "breakpoint", fresh lastStop timestamp). Repeats indefinitely — the program never advances past the line by continue alone.

Reproduced twice in one session:

  • 19:54:26 paused at main.rs:26 (breakpoint)
  • continue_execution → 19:55:19 paused again at main.rs:26 (breakpoint)

Workaround

step_over once (moves to line 27), then continue_execution runs to completion normally.

Notes

  • Likely LLDB-on-Windows failing to step over the re-armed breakpoint trap before resuming (classic breakpoint-re-hit behavior), possibly specific to the native PDB reader path.
  • Not covered by existing e2e: tests/e2e/mcp-server-smoke-rust.test.ts inspects locals at the breakpoint but never continues past a user breakpoint to completion; the async test only steps.
  • The new Rust get_output e2e assertion in PR feat: forward adapter-process stdio as debuggee output events — Ruby all platforms, Rust on Windows (#222, #223) #254 was deliberately written to not require continuing past a breakpoint because of this quirk.
  • Worth checking whether the first "paused, reason: breakpoint" reported by start_debugging is actually the Windows initial system stop being mislabeled — in the same session, the real user breakpoint was only reached after one continue (see skill note "Windows initial stop" in skills/debugging/references/rust.md:55).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions