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 8
8
"type" : " lldb" ,
9
9
"request" : " launch" ,
10
10
"name" : " LLDB Debug" ,
11
+ "preLaunchTask" : " Build WebAssembly" ,
11
12
"program" : " wasmtime" ,
12
13
"args" : [
13
14
" serve" ,
14
15
" -D" ,
15
16
" debug-info=y" ,
16
17
" --dir" ,
17
18
" ." ,
18
- " ${workspaceFolder}/target/wasm32-wasip1/debug/sample_wasi_http_rust.wasm" ,
19
+ " ${workspaceFolder}/target/wasm32-wasip1/debug/sample_wasi_http_rust.wasm"
19
20
],
20
21
"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
+ ]
21
44
}
22
45
]
23
46
}
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