advent-of-code/.vscode/launch.json

63 lines
2 KiB
JSON
Raw Permalink Normal View History

2021-12-29 14:12:01 +01:00
{
// 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",
2023-12-10 23:52:27 +01:00
"name": "Debug unit tests for a solution",
"cargo": {
2023-12-10 23:52:27 +01:00
"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}",
2023-12-10 23:52:27 +01:00
"--package=advent_of_code"
],
},
"args": [],
"cwd": "${workspaceFolder}"
2021-12-29 14:12:01 +01:00
},
{
"type": "lldb",
"request": "launch",
2023-12-10 23:52:27 +01:00
"name": "Debug a solution",
"cargo": {
2023-12-10 23:52:27 +01:00
"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}",
2023-12-10 23:52:27 +01:00
"--package=advent_of_code"
],
},
"cwd": "${workspaceFolder}"
2021-12-29 14:12:01 +01:00
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'advent_of_code'",
"cargo": {
2023-12-10 23:52:27 +01:00
"args": [
"test",
"--no-run",
"--lib",
"--features=test_lib",
"--package=advent_of_code"
],
"filter": {
"name": "advent_of_code",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
2021-12-29 14:12:01 +01:00
}