cfallin opened PR #12684 from cfallin:debugging-crate-updates to bytecodealliance:main:
This PR upstreams a few changes from my WIP debug-component branch to the async-wrapper in the debugger crate:
- The inner debuggee body takes a future that need not be
'static; this is important later in the integration.- Two race conditions fixed: (i) wait for initial debuggee body startup before sending a
with_storequery; and (ii) allowwith_storequeries after receiving aFinishedmessage, which may happen when processing final debugger commands after the program completes.- As a result of some shuffling around future lifetimes and other type-system head-banging, as well as the termination race-condition fixed, the
Store<T>is not transferred to the debuggee body and back via theJoinHandle; rather it is passed back in a message upon completion.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
cfallin requested alexcrichton for a review on PR #12684.
cfallin requested wasmtime-core-reviewers for a review on PR #12684.
alexcrichton submitted PR review.
alexcrichton added PR #12684 Debugger: a few updates to the debugger crate. to the merge queue
alexcrichton merged PR #12684.
alexcrichton removed PR #12684 Debugger: a few updates to the debugger crate. from the merge queue
Last updated: Mar 23 2026 at 16:19 UTC