Skip to content

Debugger restart error if debug icon is pressed after a stop #46

Closed
@rsora

Description

@rsora

Describe the bug
Some times the debug button behavior triggers a failed launch of openocd probably due to a bug in the GUI code

To Reproduce
Steps to reproduce the behavior:

  1. Open a sketch
  2. Connect a debug enabled board (like an Arduino Zero)
  3. Select Sketch > Optimize for Debugging
  4. Upload Sketch
  5. Click the Debug Button
    image
  6. Add a breakpoint in your sketch
  7. Click "Continue" in the Debugger control bar
    image
  8. Click "Stop" in the Debugger control bar
  9. Click the Debug button again and wait
  10. See the error (also reported in the screenshot below)
Failed to launch OpenOCD GDB Server: Error: spawn /home/rsora/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7/bin/openocd ENOENT

Please note that the last 3 steps may need to be performed a few times before seeing the failure.
Reproducibility is not consistent

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: we were able to reporduce the issue on Linux and MacOS and Windows
  • Version: 2.0.0-beta.3-snapshot.9fb8c4b
  • Date: 2021-02-25T15:29:51.087Z
  • CLI Version: 0.16.1 alpha [76f55490]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions