microsoft / microsoft/vscode-cmake-tools

conditional args based on target

Open
#2,370 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Feature: debug/launch
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

I am using the launch.json from here: https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/debug-launch.md#debug-using-a-launchjson-file
It allows a single configuration to debug multiple targets, by just switching the target in the status bar.
My problem is that I need to pass different args for different targets.
Can this be accommodated without having 2 create separate profiles in launch.json?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with docs/debug-launch.md, especially the section on using a launch.json file, and trace how the selected target is represented in the debug configuration. Determine whether the existing configuration supports target-specific arguments without separate profiles; done means the documented behavior works for multiple targets and is covered by an appropriate test or reproducible validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, vscode
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.