fix: fix vscode launch configs
This commit is contained in:
36
.vscode/launch.json
vendored
36
.vscode/launch.json
vendored
@@ -7,13 +7,15 @@
|
|||||||
{
|
{
|
||||||
"type": "lldb",
|
"type": "lldb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Debug unit tests in executable 'advent_of_code'",
|
"name": "Debug unit tests for a solution",
|
||||||
"cargo": {
|
"cargo": {
|
||||||
"args": ["test", "--no-run", "--bin=advent_of_code", "--package=advent_of_code"],
|
"args": [
|
||||||
"filter": {
|
"test",
|
||||||
"name": "advent_of_code",
|
"--no-run",
|
||||||
"kind": "bin"
|
// replace `01` here with the solution you like to debug.
|
||||||
}
|
"--bin=01",
|
||||||
|
"--package=advent_of_code"
|
||||||
|
],
|
||||||
},
|
},
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}"
|
"cwd": "${workspaceFolder}"
|
||||||
@@ -21,15 +23,15 @@
|
|||||||
{
|
{
|
||||||
"type": "lldb",
|
"type": "lldb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Debug executable 'advent_of_code'",
|
"name": "Debug a solution",
|
||||||
"cargo": {
|
"cargo": {
|
||||||
"args": ["build", "--bin=advent_of_code", "--package=advent_of_code"],
|
"args": [
|
||||||
"filter": {
|
"build",
|
||||||
"name": "advent_of_code",
|
// replace `01` here with the solution you like to debug.
|
||||||
"kind": "bin"
|
"--bin=01",
|
||||||
}
|
"--package=advent_of_code"
|
||||||
|
],
|
||||||
},
|
},
|
||||||
"args": ["1"],
|
|
||||||
"cwd": "${workspaceFolder}"
|
"cwd": "${workspaceFolder}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -37,7 +39,13 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Debug unit tests in library 'advent_of_code'",
|
"name": "Debug unit tests in library 'advent_of_code'",
|
||||||
"cargo": {
|
"cargo": {
|
||||||
"args": ["test", "--no-run", "--lib", "--package=advent_of_code"],
|
"args": [
|
||||||
|
"test",
|
||||||
|
"--no-run",
|
||||||
|
"--lib",
|
||||||
|
"--features=test_lib",
|
||||||
|
"--package=advent_of_code"
|
||||||
|
],
|
||||||
"filter": {
|
"filter": {
|
||||||
"name": "advent_of_code",
|
"name": "advent_of_code",
|
||||||
"kind": "lib"
|
"kind": "lib"
|
||||||
|
|||||||
Reference in New Issue
Block a user