36608db7b3
removes the need to specify the current day in `launch.json`
62 lines
2 KiB
JSON
62 lines
2 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug unit tests for a solution",
|
|
"cargo": {
|
|
"args": [
|
|
"test",
|
|
"--no-run",
|
|
// replace with binary name (e.g. "01") here if you always
|
|
// want to debug one file regardless of the active file in
|
|
// the editor.
|
|
"--bin=${fileBasenameNoExtension}",
|
|
"--package=advent_of_code"
|
|
],
|
|
},
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug a solution",
|
|
"cargo": {
|
|
"args": [
|
|
"build",
|
|
// replace with binary name (e.g. "01") here if you always
|
|
// want to debug one file regardless of the active file in
|
|
// the editor
|
|
"--bin=${fileBasenameNoExtension}",
|
|
"--package=advent_of_code"
|
|
],
|
|
},
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug unit tests in library 'advent_of_code'",
|
|
"cargo": {
|
|
"args": [
|
|
"test",
|
|
"--no-run",
|
|
"--lib",
|
|
"--features=test_lib",
|
|
"--package=advent_of_code"
|
|
],
|
|
"filter": {
|
|
"name": "advent_of_code",
|
|
"kind": "lib"
|
|
}
|
|
},
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
]
|
|
}
|