Launch game through VSCodium debugger
All checks were successful
CI / Formatting (push) Successful in 1m5s

This commit is contained in:
Michael Bradley 2025-05-24 13:23:20 -04:00
parent b7804bd547
commit aa07b193b6
Signed by: MichaelBradley
SSH key fingerprint: SHA256:o/aaeYtRubILK7OYYjYP12DmU7BsPUhKji1AgaQ+ge4
2 changed files with 49 additions and 9 deletions

46
.vscode/launch.json vendored Normal file
View file

@ -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
}
}
]
}