distributed_physics_test/.vscode/launch.json
Michael Bradley 9ab8db41de
All checks were successful
CI / Formatting (push) Successful in 1m33s
Don't specify peer port
Using a port of 0 and letting the OS choose for us means that we can run multiple peers locally
2025-07-05 23:04:46 -04:00

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", "--port=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": 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
}
}
]
}