-
Currently, I have duplicate debug configurations in launch.json:
and in settings.json:
Both have to be maintained in tandem. Is it possible to only have a single copy in one place and refer to it by name in the other? If not, please consider this a feature request. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
It is not expected for users to have both |
Beta Was this translation helpful? Give feedback.
-
From my experience, you need both these files if you want to be able to launch the debugger from top of the CMake Project Status aswell as the Run and Debug option. The former needs cmake.debugConfig the latter needs launch.json. If there is a way for cmake.debugConfig to propagate its contents to launch.json, or vice-versa, I certainly haven't found it. I'm using macOS. |
Beta Was this translation helpful? Give feedback.
-
"cmake.debugConfig": {
"console": "integratedTerminal",
//"setupCommands": [{"text": "set charset UTF-8"}] // does not affect Debug Console here nor in `launch.json`
}, |
Beta Was this translation helpful? Give feedback.
It is not expected for users to have both
launch.json
andcmake.debugConfig
. The CMake Tools quick launch/debug feature was designed for users who do not have alaunch.json
. It is recommended that you use the built in VS Code UI and keyboard shortcuts (e.g. F5) to begin debugging if you havelaunch.json
.