parent
55e4ee7b6b
commit
b0e2763521
3 changed files with 30 additions and 25 deletions
@ -0,0 +1,3 @@ |
||||
[env] |
||||
# Makes Bevy look for the assets/ directory in the right place. |
||||
BEVY_ASSET_ROOT = { value = ".", relative = true } |
@ -1,27 +1,29 @@ |
||||
{ |
||||
"version": "0.2.0", |
||||
"configurations": [ |
||||
{ |
||||
"type": "lldb", |
||||
"request": "launch", |
||||
"name": "Debug client", |
||||
"cargo": { |
||||
"args": [ "build", "--bin=gaemstone-client", "--package=gaemstone-client" ], |
||||
"filter": { "name": "gaemstone-client", "kind": "bin" }, |
||||
}, |
||||
"cwd": "${workspaceFolder}", |
||||
"args": [], |
||||
}, |
||||
{ |
||||
"type": "lldb", |
||||
"request": "launch", |
||||
"name": "Debug server", |
||||
"cargo": { |
||||
"args": [ "build", "--bin=gaemstone-server", "--package=gaemstone-server" ], |
||||
"filter": { "name": "gaemstone-server", "kind": "bin" }, |
||||
}, |
||||
"cwd": "${workspaceFolder}", |
||||
"args": [], |
||||
} |
||||
] |
||||
"version": "0.2.0", |
||||
"configurations": [ |
||||
{ |
||||
"type": "lldb", |
||||
"request": "launch", |
||||
"name": "Debug client", |
||||
"cargo": { |
||||
"args": [ "build", "--bin=gaemstone-client", "--package=gaemstone-client" ], |
||||
"filter": { "name": "gaemstone-client", "kind": "bin" }, |
||||
}, |
||||
// 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. |
||||
"env": { "BEVY_ASSET_ROOT": "${workspaceFolder}" }, |
||||
"args": [], |
||||
}, |
||||
{ |
||||
"type": "lldb", |
||||
"request": "launch", |
||||
"name": "Debug server", |
||||
"cargo": { |
||||
"args": [ "build", "--bin=gaemstone-server", "--package=gaemstone-server" ], |
||||
"filter": { "name": "gaemstone-server", "kind": "bin" }, |
||||
}, |
||||
"args": [], |
||||
} |
||||
] |
||||
} |
||||
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Loading…
Reference in new issue