diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f4dd30c --- /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": "Debug game", + "cargo": { + "args": ["build"] + }, + "args": ["--seed=gargamel"], + "cwd": "${workspaceFolder}", + "env": { + "CARGO_MANIFEST_DIR": "${workspaceFolder}", + "LD_LIBRARY_PATH": "${workspaceFolder}/target/debug/deps:${env:HOME}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" + }, + "presentation": { + "hidden": false, + "group": "run", + "order": 1 + } + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug peer", + "cargo": { + "args": ["build"] + }, + "args": ["--port=25566", "--connect=[::1]:25565"], + "cwd": "${workspaceFolder}", + "env": { + "CARGO_MANIFEST_DIR": "${workspaceFolder}", + "LD_LIBRARY_PATH": "${workspaceFolder}/target/debug/deps:${env:HOME}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" + }, + "presentation": { + "hidden": false, + "group": "run", + "order": 2 + } + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 155290c..1062be3 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,18 +2,12 @@ "version": "2.0.0", "tasks": [ { - "label": "Launch", + "label": "Build", "type": "cargo", - "command": "run", - "args": ["--", "--seed", "gargamel"], - "options": { - "env": { - "RUST_BACKTRACE": "full" - } - }, + "command": "build", "presentation": { "echo": true, - "reveal": "always", + "reveal": "silent", "focus": false, "panel": "dedicated", "showReuseMessage": false,