65 lines
2 KiB
JSON
65 lines
2 KiB
JSON
{
|
|
// 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 local peer",
|
|
"cargo": {
|
|
"args": ["build"]
|
|
},
|
|
"args": ["--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
|
|
}
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug remote peer",
|
|
"cargo": {
|
|
"args": ["build"]
|
|
},
|
|
"args": ["--connect=[fd7a:115c:a1e0::9]:25565"], // chonk's IPv6 address via tailscale
|
|
"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
|
|
}
|
|
}
|
|
]
|
|
}
|