Skip to content

Commit ef0bef8

Browse files
authored
give example test explorer debug configurations hidden presentation (#4397)
`${cmake.testProgram}` is only valid in debug launch configurations when they are run from the Test Explorer. Configurations that use it always fail with "'${cmake.testProgram}' does not exist" when run from the Run and Debug sidebar. Recommend hiding them to remove a source of errors.
1 parent 6f4f396 commit ef0bef8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: docs/debug-launch.md

+2
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ A couple of examples:
207207
"name": "(ctest) Launch",
208208
"type": "cppdbg",
209209
"request": "launch",
210+
"presentation": { "hidden": true },
210211
// Resolved by CMake Tools:
211212
"cwd": "${cmake.testWorkingDirectory}",
212213
"program": "${cmake.testProgram}",
@@ -219,6 +220,7 @@ A couple of examples:
219220
"name": "(ctest) Launch",
220221
"type": "cppvsdbg",
221222
"request": "launch",
223+
"presentation": { "hidden": true },
222224
// Resolved by CMake Tools:
223225
"program": "${cmake.testProgram}",
224226
"args": [ "${cmake.testArgs}"],

0 commit comments

Comments
 (0)