cfallin opened PR #12856 from cfallin:debug-integration-test to bytecodealliance:main:
This PR adds:
An integration-test that runs LLDB against the Wasmtime CLI to verify basic debugging functionality, similar to the existing native-debug tests.
A CI job that runs the above in CI.
Some minor tweaks to the gdbstub debugger design:
- Rather than the initial single-step to get to the first Wasm instruction where module(s) will be instantiated into the store and visible to the debugger, we pre-register modules with the store eagerly. This avoids the slightly hacky flow and also is a preparation step for
wasmtime servedebugging, where we can't single-step into execution eagerly (because execution doesn't start at all until an HTTP request arrives).- Add a separate message-printing path for "debugger info messages", allowing us to print the "debugger is listening on <PORT>" message without inheriting stderr for the whole debugger component environment. This message is necessary for the above integration test (it parses the message to determine when the debuggee is ready).
<!--
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 fitzgen for a review on PR #12856.
cfallin requested wasmtime-core-reviewers for a review on PR #12856.
cfallin requested wasmtime-default-reviewers for a review on PR #12856.
cfallin updated PR #12856.
fitzgen submitted PR review:
Nice!
fitzgen added PR #12856 Debugging: add integration test with LLDB and some minor tweaks. to the merge queue
fitzgen merged PR #12856.
fitzgen removed PR #12856 Debugging: add integration test with LLDB and some minor tweaks. from the merge queue
Last updated: Apr 13 2026 at 00:25 UTC