Not possible to override debug configuration keys that are remapped from Arduino CLI #48
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
This extension automatically generates a
launch.json
file to configure the Cortex-Debug VS Code extension for use with the selected board and "programmer" (debug probe).The base configuration data comes from the
arduino-cli debug --info
output. Some of that data does not match exactly with thelaunch.json
format so the extension remaps it.In some cases (example), the user might need/want to make some adjustments to the generated configuration. This is done by adding the custom configuration data to a file named
debug_custom.json
in the sketch root folder. The configuration from that file is merged into the base data when generatinglaunch.json
, overriding the base data where there is overlap.🐛 Overrides no longer work for the configuration keys that are remapped from the Arduino CLI data:
armToolchainPath
configFiles
serverpath
servertype
To reproduce
ⓘ Hardware is not required to perform this demo.
ⓘ This platform was selected arbitrarily as one that has debugger support. The fault is not platform-specific.
A menu will open.
The "Name for new file" dialog will open.
debug_custom.json
in the field in the dialog.The dialog will close and a "debug_custom.json" tab will be added to the editor view.
ⓘ The failure is expected unless you happen to have the necessary hardware connected to your computer. It is not relevant to the demo.
The debug view will open in the left side panel.
A "launch.json" tab will open in the editor.
🙂 The
configurations[0].toolchainPrefix
value was set according todebug_custom.json
as expected:🐛 The
configurations[0].armToolchainPath
,configurations[0].configFiles
,configurations[0].serverpath
, andconfigurations[0].servertype
values were not set according todebug_custom.json
:Expected behavior
Any debug configuration key can be overridden via
debug_custom.json
.vscode-arduino-tools version
0.1.3
Additional context
The regression was introduced at 9508d0a / #41
Additional Reports
Workaround
Use the pre-remapping key names in
debug_custom.json
:armToolchainPath
->toolchainPath
configFiles
->serverConfiguration.scripts
serverpath
->serverPath
servertype
->server
The text was updated successfully, but these errors were encountered: