|
1 | 1 | {
|
2 | 2 | "version": "0.2.0",
|
3 | 3 | "configurations": [
|
4 |
| - { |
5 |
| - "name": "Debug on Windows", |
6 |
| - "type": "cppvsdbg", |
7 |
| - "request": "launch", |
8 |
| - "program": "${workspaceFolder}/build/<path-to-bin-file>", |
9 |
| - "args": [], |
10 |
| - "stopAtEntry": false, |
11 |
| - "cwd": "${workspaceFolder}", |
12 |
| - "environment": [], |
13 |
| - "externalConsole": false |
14 |
| - }, |
15 |
| - { |
16 |
| - "name": "Debug on Linux", |
17 |
| - "type": "gdb", |
18 |
| - "request": "launch", |
19 |
| - "target": "${workspaceFolder}/bazel-bin/<path to the bin file>", |
20 |
| - "cwd": "${workspaceRoot}", |
21 |
| - "valuesFormatting": "parseText" |
22 |
| - } |
| 4 | + { |
| 5 | + "name": "(ctest) Launch", |
| 6 | + "type": "cppdbg", |
| 7 | + "cwd": "${cmake.testWorkingDirectory}", |
| 8 | + "request": "launch", |
| 9 | + "program": "${cmake.testProgram}", |
| 10 | + "args": [ "${cmake.testArgs}" ], |
| 11 | + // other options... |
| 12 | + }, |
| 13 | + { |
| 14 | + "name": "Debug on Windows", |
| 15 | + "type": "cppvsdbg", |
| 16 | + "request": "launch", |
| 17 | + "program": "${workspaceFolder}/build/<path-to-bin-file>", |
| 18 | + "args": [], |
| 19 | + "stopAtEntry": false, |
| 20 | + "cwd": "${workspaceFolder}", |
| 21 | + "environment": [], |
| 22 | + "externalConsole": false |
| 23 | + }, |
| 24 | + { |
| 25 | + "name": "Debug on Linux", |
| 26 | + "type": "gdb", |
| 27 | + "request": "launch", |
| 28 | + "target": "${workspaceFolder}/bazel-bin/<path to the bin file>", |
| 29 | + "cwd": "${workspaceRoot}", |
| 30 | + "valuesFormatting": "parseText" |
| 31 | + } |
23 | 32 | ]
|
24 | 33 | }
|
0 commit comments