{ "version": "0.2.0", "configurations": [ { "type": "lldb", "request": "launch", "name": "Debug client", "cargo": { "args": [ "build", "--bin", "gaemstone-client", "--package", "gaemstone-client", // "--features", "bevy/dynamic_linking", ], "filter": { "name": "gaemstone-client", "kind": "bin", }, }, "env": { // When Bevy looks for assets, it checks BEVY_ASSET_ROOT, CARGO_MANIFEST_DIR, and // then falls back to the executable directory. When debugging, the cargo manifest // directory is not set, so we need to specify this environment variable. "BEVY_ASSET_ROOT": "${workspaceFolder}", // When debugging with the dynamic_linking feature enabled, we need to add // the right directories to LD_LIBRARY_PATH, for the libraries to be found. // NOTE: Currently disabled. Find a way to do this in a portable way. // "LD_LIBRARY_PATH": "${workspaceFolder}/target/debug/deps:${userHome}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib:${env:LD_LIBRARY_PATH}", }, "args": [], }, { "type": "lldb", "request": "launch", "name": "Debug server", "cargo": { "args": [ "build", "--bin", "gaemstone-server", "--package", "gaemstone-server", // "--features", "bevy/dynamic_linking", ], "filter": { "name": "gaemstone-server", "kind": "bin", }, }, "args": [], }, { "type": "lldb", "request": "launch", "name": "Debug client unit tests", "cargo": { "args": [ "test", "--no-run", ], "filter": { "name": "gaemstone-client", "kind": "bin", }, }, "args": [], } ], }