microsoft / microsoft/vscode-cmake-tools
CMake: Build Target from tasks.json to support compound debugging
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 546
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 32
Description
- I want to debug multiple individual executables together (server, client) that have no build time dependencies.
- I have `compounds` in `launch.json` that works for this.
- For each executable in my compound, I'd like to have `preLaunchTask` in `launch.json` to make sure those executables are rebuilt before debugging.
- In the preLaunchTasks I would like to be able to perform `CMake: Build Target`, so that I can build those targets.
There does not seem to be a way to perform `CMake: Build Target` from a task in `tasks.json`. Is there a way? Or does this need a new feature in CMake Tools? Thanks!
Contributor guide
Research direction
Start by tracing how the CMake: Build Target command is exposed and how tasks.json preLaunchTask entries interact with launch.json compounds. Confirm the expected behavior for rebuilding each executable before debugging, then validate it with a compound configuration covering multiple targets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, typescript
- Domain
- build-system, devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100