File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 88 "type" : " lldb" ,
99 "request" : " launch" ,
1010 "name" : " LLDB Debug" ,
11+ "preLaunchTask" : " Build WebAssembly" ,
1112 "program" : " wasmtime" ,
1213 "args" : [
1314 " serve" ,
1415 " -D" ,
1516 " debug-info=y" ,
1617 " --dir" ,
1718 " ." ,
18- " ${workspaceFolder}/target/wasm32-wasip1/debug/sample_wasi_http_rust.wasm" ,
19+ " ${workspaceFolder}/target/wasm32-wasip1/debug/sample_wasi_http_rust.wasm"
1920 ],
2021 "cwd" : " ${workspaceFolder}"
22+ },
23+ {
24+ "name" : " GDB debug" ,
25+ "type" :" cppdbg" ,
26+ "request" : " launch" ,
27+ "preLaunchTask" : " Build WebAssembly" ,
28+ "program" : " /home/<username>/.wasmtime/bin/wasmtime" ,
29+ "args" : [
30+ " serve" ,
31+ " -D" ,
32+ " debug-info=y" ,
33+ " --dir" ,
34+ " ." ,
35+ " ${workspaceFolder}/target/wasm32-wasip1/debug/sample_wasi_http_rust.wasm"
36+ ],
37+ "cwd" : " ${workspaceFolder}" ,
38+ "MIMode" : " gdb" ,
39+ "setupCommands" : [
40+ {
41+ "text" : " -enable-pretty-printing" ,
42+ }
43+ ]
2144 }
2245 ]
2346}
Original file line number Diff line number Diff line change 1+ {
2+ "version" : " 2.0.0" ,
3+ "tasks" : [
4+ {
5+ "label" : " Build WebAssembly" ,
6+ "type" : " shell" ,
7+ "command" : " cargo component build" ,
8+ "group" : " build" ,
9+ "presentation" : {
10+ "reveal" : " always" ,
11+ "panel" : " new"
12+ }
13+ }
14+ ]
15+ }
You can’t perform that action at this time.
0 commit comments