Skip to content

Commit

Permalink
fix: fix vscode launch configs
Browse files Browse the repository at this point in the history
  • Loading branch information
fspoettel committed Dec 10, 2023
1 parent c967155 commit 84208a6
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,45 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'advent_of_code'",
"name": "Debug unit tests for a solution",
"cargo": {
"args": ["test", "--no-run", "--bin=advent_of_code", "--package=advent_of_code"],
"filter": {
"name": "advent_of_code",
"kind": "bin"
}
"args": [
"test",
"--no-run",
// replace `01` here with the solution you like to debug.
"--bin=01",
"--package=advent_of_code"
],
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'advent_of_code'",
"name": "Debug a solution",
"cargo": {
"args": ["build", "--bin=advent_of_code", "--package=advent_of_code"],
"filter": {
"name": "advent_of_code",
"kind": "bin"
}
"args": [
"build",
// replace `01` here with the solution you like to debug.
"--bin=01",
"--package=advent_of_code"
],
},
"args": ["1"],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'advent_of_code'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=advent_of_code"],
"args": [
"test",
"--no-run",
"--lib",
"--features=test_lib",
"--package=advent_of_code"
],
"filter": {
"name": "advent_of_code",
"kind": "lib"
Expand Down

0 comments on commit 84208a6

Please sign in to comment.