Skip to content

Commit

Permalink
Set CARGO_MANIFEST_DIR env variable for debugging in vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
Laptop765 authored and mrtracy committed Jul 23, 2024
1 parent 80c5497 commit f277f8c
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Run executable 'bevy_github_ci_template'",
"cargo": {
"args": [
"run",
"--features",
"bevy/dynamic_linking",
"--bin=bevy_github_ci_template",
"--package=bevy_github_ci_template"
],
"filter": {
"name": "bevy_github_ci_template",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}",
"env": {
"CARGO_MANIFEST_DIR": "${workspaceFolder}",
}
},
{
"type": "lldb",
"request": "launch",
Expand All @@ -20,7 +43,10 @@
}
},
"args": [],
"cwd": "${workspaceFolder}"
"cwd": "${workspaceFolder}",
"env": {
"CARGO_MANIFEST_DIR": "${workspaceFolder}",
}
},
{
"type": "lldb",
Expand All @@ -39,7 +65,10 @@
}
},
"args": [],
"cwd": "${workspaceFolder}"
"cwd": "${workspaceFolder}",
"env": {
"CARGO_MANIFEST_DIR": "${workspaceFolder}",
}
}
]
}

0 comments on commit f277f8c

Please sign in to comment.