Skip to content

Commit 265dbc1

Browse files
committed
Take into account serverless debug probes when configuring debug speed
1 parent b76e82e commit 265dbc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ def _add_default_debug_tools(self, board):
157157

158158
def configure_debug_options(self, initial_debug_options, ide_data):
159159
debug_options = copy.deepcopy(initial_debug_options)
160-
server_executable = debug_options["server"]["executable"].lower()
161160
adapter_speed = initial_debug_options.get("speed")
162161
if adapter_speed:
162+
server_executable = debug_options["server"].get("executable", "").lower()
163163
if "openocd" in server_executable:
164164
debug_options["server"]["arguments"].extend(
165165
["-c", "adapter speed %s" % adapter_speed]

0 commit comments

Comments
 (0)