Stream: git-wasmtime

Topic: wasmtime / PR #12859 Debugging: add debugger support for ...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 27 2026 at 21:29):

cfallin opened PR #12859 from cfallin:debug-wasmtime-serve-2 to bytecodealliance:main:

This adopts a simple solution to #12776: it takes the "instance reuse" paradigm to the extreme, instantiating exactly one instance and serializing all requests into that one instance. This allows the debugger component to operate on one Store, setting breakpoint state and presenting its execution to the attached debugger as a single program execution and minimizing impedance mismatches.

This also adds an integration test that runs an existing wasi-http test component under the debugger.

Contains a few bugfixes to core debug functionality:

With these fixes, setting a breakpoint at handle in a wasi-http component and introspecting mid-request works properly.

<!--
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 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 (Mar 27 2026 at 21:29):

cfallin requested fitzgen for a review on PR #12859.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 27 2026 at 21:29):

cfallin requested wasmtime-compiler-reviewers for a review on PR #12859.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 27 2026 at 21:29):

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

view this post on Zulip Wasmtime GitHub notifications bot (Mar 27 2026 at 21:29):

cfallin edited PR #12859:

This adopts a simple solution to #12776: it takes the "instance reuse" paradigm to the extreme, instantiating exactly one instance and serializing all requests into that one instance. This allows the debugger component to operate on one Store, setting breakpoint state and presenting its execution to the attached debugger as a single program execution and minimizing impedance mismatches.

This also adds an integration test that runs an existing wasi-http test component under the debugger.

Contains a few bugfixes to core debug functionality:

With these fixes, setting a breakpoint at handle in a wasi-http component and introspecting mid-request works properly.

Closes #12776.

<!--
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 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 (Mar 28 2026 at 01:05):

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

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 11:52):

fitzgen submitted PR review:

LGTM -- maybe we should have newtypes for offset in code module, vs offset in component, vs offset in code section? Doesn't need to block this PR landing.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 23:36):

cfallin updated PR #12859.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 23:39):

cfallin updated PR #12859.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 23:42):

cfallin commented on PR #12859:

Good idea -- did the newtype thing and pulled out the underlying fixes from this PR as #12901; only last commit is the wasmtime serve bit now.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 23:44):

cfallin updated PR #12859.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 04:08):

cfallin updated PR #12859.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 21:40):

cfallin updated PR #12859.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 21:41):

cfallin commented on PR #12859:

Rebased out the other fixes so now this is just wasmtime serve -g -- should be ready for review!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 21:41):

cfallin commented on PR #12859:

(@fitzgen you had written "LGTM" above but no r+ -- fyi, but no rush)

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2026 at 00:07):

fitzgen submitted PR review:

oh whoops sorry!

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2026 at 00:07):

fitzgen added PR #12859 Debugging: add debugger support for wasmtime serve. to the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2026 at 00:28):

github-merge-queue[bot] removed PR #12859 Debugging: add debugger support for wasmtime serve. from the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2026 at 01:33):

cfallin added PR #12859 Debugging: add debugger support for wasmtime serve. to the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2026 at 01:58):

cfallin removed PR #12859 Debugging: add debugger support for wasmtime serve. from the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2026 at 01:58):

cfallin merged PR #12859.


Last updated: Apr 13 2026 at 00:25 UTC