Skip to content

Commit 99c3ea8

Browse files
committed
fix: debugging requires a non empty debug.executable
1 parent 0381aa5 commit 99c3ea8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

commands/debug/debug_info.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func getDebugProperties(req *rpc.GetDebugConfigRequest, pme *packagemanager.Expl
140140
}
141141
}
142142

143-
if !debugProperties.ContainsKey("executable") {
143+
if !debugProperties.ContainsKey("executable") || debugProperties.Get("executable") == "" {
144144
return nil, &arduino.FailedDebugError{Message: tr("Debugging not supported for board %s", req.GetFqbn())}
145145
}
146146

docs/UPGRADING.md

+2
Original file line numberDiff line numberDiff line change
@@ -2533,6 +2533,8 @@ debug.server.openocd.scripts_dir={runtime.tools.openocd-0.10.0-arduino7.path}/sh
25332533
debug.server.openocd.script={runtime.platform.path}/variants/{build.variant}/{build.openocdscript}
25342534
```
25352535
2536+
The `debug.executable` key must be present and non-empty for debugging to be supported.
2537+
25362538
The `debug.server.XXXX` subkeys are optional and also "free text", this means that the configuration may be extended as
25372539
needed by the specific server. For now only `openocd` is supported. Anyway, if this change works, any other kind of
25382540
server may be fairly easily added.

0 commit comments

Comments
 (0)