Skip to content

Commit

Permalink
add vscode debug config for cargo bench and cargo test
Browse files Browse the repository at this point in the history
  • Loading branch information
emuell committed Jul 1, 2024
1 parent d3c2f34 commit 3360be2
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"build",
"--example=play",
"--features=player",
"--package=afseq"
],
"filter": {
"name": "play",
Expand All @@ -32,7 +31,6 @@
"build",
"--example=play-script",
"--features=player",
"--package=afseq"
],
"filter": {
"name": "play-script",
Expand All @@ -43,12 +41,44 @@
"cwd": "${workspaceFolder}"
},
{
"arg": [],
"type": "lldb",
"request": "launch",
"name": "Debug tests",
"cargo": {
"args": [
"test",
"--no-run",
],
},
"args": [
"--test",
],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug benchmarks",
"cargo": {
"args": [
"bench",
"--no-run",
],
},
"args": [
"--bench",
"--profile-time",
"100",
],
"cwd": "${workspaceFolder}"
},
{
"type": "lua",
"name": "Debug current Lua File",
"program": "${file}",
"request": "launch",
"program": "${file}",
"arg": [],
"stopOnEntry": true,
"type": "lua"
},
]
}

0 comments on commit 3360be2

Please sign in to comment.