diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..b38422f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,46 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "LLDB Debug", + "preLaunchTask": "Build WebAssembly", + "program": "wasmtime", + "args": [ + "serve", + "-D", + "debug-info=y", + "--dir", + ".", + "${workspaceFolder}/target/wasm32-wasip1/debug/sample_wasi_http_rust.wasm" + ], + "cwd": "${workspaceFolder}" + }, + { + "name": "GDB debug", + "type":"cppdbg", + "request": "launch", + "preLaunchTask": "Build WebAssembly", + "program": "/home//.wasmtime/bin/wasmtime", + "args": [ + "serve", + "-D", + "debug-info=y", + "--dir", + ".", + "${workspaceFolder}/target/wasm32-wasip1/debug/sample_wasi_http_rust.wasm" + ], + "cwd": "${workspaceFolder}", + "MIMode": "gdb", + "setupCommands": [ + { + "text": "-enable-pretty-printing", + } + ] + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..4b6bd4f --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,15 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build WebAssembly", + "type": "shell", + "command": "cargo component build", + "group": "build", + "presentation": { + "reveal": "always", + "panel": "new" + } + } + ] +} \ No newline at end of file