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