Launch game through VSCodium debugger
All checks were successful
CI / Formatting (push) Successful in 1m5s
All checks were successful
CI / Formatting (push) Successful in 1m5s
This commit is contained in:
parent
b7804bd547
commit
aa07b193b6
2 changed files with 49 additions and 9 deletions
46
.vscode/launch.json
vendored
Normal file
46
.vscode/launch.json
vendored
Normal 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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
12
.vscode/tasks.json
vendored
12
.vscode/tasks.json
vendored
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue