Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 84208a6

Browse files
fix: fix vscode launch configs
1 parent c967155 commit 84208a6

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

‎.vscode/launch.json‎

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,45 @@
77
{
88
"type": "lldb",
99
"request": "launch",
10-
"name": "Debug unit tests in executable 'advent_of_code'",
10+
"name": "Debug unit tests for a solution",
1111
"cargo": {
12-
"args": ["test", "--no-run", "--bin=advent_of_code", "--package=advent_of_code"],
13-
"filter": {
14-
"name": "advent_of_code",
15-
"kind": "bin"
16-
}
12+
"args": [
13+
"test",
14+
"--no-run",
15+
// replace `01` here with the solution you like to debug.
16+
"--bin=01",
17+
"--package=advent_of_code"
18+
],
1719
},
1820
"args": [],
1921
"cwd": "${workspaceFolder}"
2022
},
2123
{
2224
"type": "lldb",
2325
"request": "launch",
24-
"name": "Debug executable 'advent_of_code'",
26+
"name": "Debug a solution",
2527
"cargo": {
26-
"args": ["build", "--bin=advent_of_code", "--package=advent_of_code"],
27-
"filter": {
28-
"name": "advent_of_code",
29-
"kind": "bin"
30-
}
28+
"args": [
29+
"build",
30+
// replace `01` here with the solution you like to debug.
31+
"--bin=01",
32+
"--package=advent_of_code"
33+
],
3134
},
32-
"args": ["1"],
3335
"cwd": "${workspaceFolder}"
3436
},
3537
{
3638
"type": "lldb",
3739
"request": "launch",
3840
"name": "Debug unit tests in library 'advent_of_code'",
3941
"cargo": {
40-
"args": ["test", "--no-run", "--lib", "--package=advent_of_code"],
42+
"args": [
43+
"test",
44+
"--no-run",
45+
"--lib",
46+
"--features=test_lib",
47+
"--package=advent_of_code"
48+
],
4149
"filter": {
4250
"name": "advent_of_code",
4351
"kind": "lib"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /