Commit 4c7c01d
authored
Debugging: add debugger support for
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.wasmtime serve. (#12859)1 parent da36d99 commit 4c7c01d
5 files changed
Lines changed: 498 additions & 10 deletions
File tree
- crates/wasmtime/src/runtime
- vm
- src/commands
- tests/all/guest_debug
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
1105 | | - | |
1106 | 1105 | | |
1107 | 1106 | | |
1108 | 1107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1755 | 1755 | | |
1756 | 1756 | | |
1757 | 1757 | | |
1758 | | - | |
1759 | 1758 | | |
1760 | 1759 | | |
1761 | 1760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
400 | 403 | | |
401 | 404 | | |
402 | 405 | | |
| |||
510 | 513 | | |
511 | 514 | | |
512 | 515 | | |
513 | | - | |
| 516 | + | |
514 | 517 | | |
515 | 518 | | |
516 | 519 | | |
| |||
898 | 901 | | |
899 | 902 | | |
900 | 903 | | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
901 | 908 | | |
902 | | - | |
| 909 | + | |
| 910 | + | |
903 | 911 | | |
904 | | - | |
| 912 | + | |
905 | 913 | | |
906 | 914 | | |
907 | 915 | | |
| |||
910 | 918 | | |
911 | 919 | | |
912 | 920 | | |
913 | | - | |
| 921 | + | |
914 | 922 | | |
915 | 923 | | |
916 | 924 | | |
| |||
0 commit comments