launch.json (2391B)
1 { 2 // Use IntelliSense to learn about possible attributes. 3 // Hover to view descriptions of existing attributes. 4 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 "version": "0.2.0", 6 "configurations": [ 7 // this config bypasses waiting for debugger attachment, increasing speed 8 { 9 "name": "Quick Launch", 10 "type": "node-terminal", 11 "request": "launch", 12 "command": "cargo run --features dev", 13 }, 14 { 15 "type": "lldb", 16 "request": "launch", 17 "name": "Debug", 18 "cargo": { 19 "args": [ 20 "build", 21 "--bin=bevy_game", 22 "--package=bevy_game", 23 "--features", 24 "dev" 25 ], 26 "filter": { 27 "name": "bevy_game", 28 "kind": "bin" 29 }, 30 }, 31 "args": [], 32 "cwd": "${workspaceFolder}", 33 "env": { 34 "CARGO_MANIFEST_DIR": "${workspaceFolder}", 35 }, 36 "linux": { 37 "env": { 38 "LD_LIBRARY_PATH": "${env:LD_LIBRARY_PATH}:${workspaceFolder}/target/debug:${env:HOME}/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:${env:HOME}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib" 39 } 40 } 41 }, 42 { 43 "type": "lldb", 44 "request": "launch", 45 "name": "Debug unit tests", 46 "cargo": { 47 "args": [ 48 "test", 49 "--no-run", 50 "--bin=bevy_game", 51 "--package=bevy_game", 52 "--features", 53 "dev" 54 ], 55 "filter": { 56 "name": "bevy_game", 57 "kind": "bin" 58 } 59 }, 60 "args": [], 61 "cwd": "${workspaceFolder}", 62 "env": { 63 "CARGO_MANIFEST_DIR": "${workspaceFolder}", 64 "LD_LIBRARY_PATH": "${env:LD_LIBRARY_PATH}:${workspaceFolder}/target/debug:${env:HOME}/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:${env:HOME}/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib" 65 } 66 } 67 ] 68 }