Stream: git-wasmtime

Topic: wasmtime / PR #15185 Debugging: edit breakpoints and watc...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 17:27):

cfallin requested fitzgen for a review on PR #15185.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 17:27):

cfallin requested wasmtime-core-reviewers for a review on PR #15185.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 17:27):

cfallin opened PR #15185 from cfallin:breakpoint-state to bytecodealliance:main:

In order to prepare for record/replay and reversible debugging, we need a little more discipline about read-only vs. read-write access to the Store. The breakpoint/watchpoint state in the store is a logically separate thing that has more to do with execution strategy than the actual Wasm state (i.e., cannot affect Wasm state).

Also, separately, breakpoints and watchpoints have a somewhat distributed API surface: breakpoints are edited via the existing Store::edit_breakpoints that returns a BreakpointEdit view struct, while watchpoints are edited via Memory::debug_watch. Watchpoints are really a kind of breakpoint (if you squint enough) and both should be managed in the same way.

This PR introduces a BreakpointState view struct in the API returned from Store::edit_breakpoints that manages both breakpoints and watchpoints. This solves both problems: we can now treat BreakpointState as a thing that we can hand out mutably in future record/replay debug APIs (when the overall store is read-only), providing access to exactly and only the bit of execution-control state we want to be mutable.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 19:33):

:thumbs_up: fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 19:33):

:speech_balloon: fitzgen created PR review comment:

Trailing bool parameters are not great for readers at call sites. Does it make sense to split this method into watch and unwatch (or {start,stop}_watching)? Or alternatively the classic approach like enum WatchAction { StartWatching, StopWatching } but probably/hopefully with better names...

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 21:44):

github-actions[bot] added the label wasmtime:api on PR #15185.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 22:30):

cfallin updated PR #15185.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 22:30):

:memo: cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 22:30):

:speech_balloon: cfallin created PR review comment:

Done! Went with watch and unwatch here.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 22:30):

cfallin has enabled auto merge for PR #15185.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 22:42):

cfallin added PR #15185 Debugging: edit breakpoints and watchpoints through BreakpointState. to the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 23:25):

:check: cfallin merged PR #15185.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 23:25):

cfallin removed PR #15185 Debugging: edit breakpoints and watchpoints through BreakpointState. from the merge queue


Last updated: Nov 19 2026 at 20:05 UTC