Closed
Description
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:
- Open a sketch
- Connect a debug enabled board (like an Arduino Zero)
- Select Sketch > Optimize for Debugging
- Upload Sketch
- Click the Debug Button
- Add a breakpoint in your sketch
- Click "Continue" in the Debugger control bar
- Click "Stop" in the Debugger control bar
- Click the Debug button again and wait
- 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.
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]