Marus / cortex-debug

Visual Studio Code extension for enhancing debug capabilities for Cortex-M Microcontrollers
MIT License
1.02k stars 240 forks source link

"serialNumber" property located in local user settings instead of launch.json #997

Open miitors-ara opened 8 months ago

miitors-ara commented 8 months ago

Is your feature request related to a problem? Please describe. When working multiple people on the same project using SCM, it is annoying to have to resolve merge conflicts every time a new commit is made due to the serialNumber property being in launch.json.

Describe the solution you'd like The "serialNumber" property should be located in user settings.

selectstriker2 commented 8 months ago

Have you tried removing the "serialNumber" property altogether? I'm using a J-Link and I've never had to include the "serialNumber" property in my launch.json

miitors-ara commented 8 months ago

sorry, I should have noted that I have multiple debuggers connected to my computer, so I need to specify which one to use.

miitors-ara commented 8 months ago

I found out that you can put custom settings in the user settings.json and reference it from the launch.json. Example: In settings.json "serialNumber": <your serial number> In launch.json: "serialNumber": "${config:serialNumber}",