-
-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start debugger when watch expressions are configured #1582
Comments
This change is suspicious: 112153f#diff-0b4e3216be464eb4dd98e2e90c65bdd93b023735c8125d201881d3be43eff3e4 |
I remember having this error from day one. I downloaded
|
@per1234 Once removed, the error disaapears. Once added back, error appears again. |
Patch for: - eclipse-theia/theia#11871 - eclipse-theia/theia#11879 - eclipse-theia/theia#11880 - eclipse-theia/theia#11885 - eclipse-theia/theia#11886 - eclipse-theia/theia#11916 Closes arduino#1582 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Patch for: - eclipse-theia/theia#11871 - eclipse-theia/theia#11879 - eclipse-theia/theia#11880 - eclipse-theia/theia#11885 - eclipse-theia/theia#11886 - eclipse-theia/theia#11916 Closes #1582 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Patch for: - eclipse-theia/theia#11871 - eclipse-theia/theia#11879 - eclipse-theia/theia#11880 - eclipse-theia/theia#11885 - eclipse-theia/theia#11886 - eclipse-theia/theia#11916 Closes #1582 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Patch for: - eclipse-theia/theia#11871 - eclipse-theia/theia#11879 - eclipse-theia/theia#11880 - eclipse-theia/theia#11885 - eclipse-theia/theia#11886 - eclipse-theia/theia#11916 Closes #1582 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Patch for: - eclipse-theia/theia#11871 - eclipse-theia/theia#11879 - eclipse-theia/theia#11880 - eclipse-theia/theia#11885 - eclipse-theia/theia#11886 - eclipse-theia/theia#11916 Closes #1582 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Describe the problem
Arduino IDE has an integrated debugger for debugging sketches.
One of the features of the debugger is the ability to configure expressions to "watch", which is useful for tracking the value of variables at each point in the program execution.
🐛 If a watch expression is configured, the debugger fails to start.
To reproduce
Equipment
Any board of a platform that is configured for use with the debugger (currently only "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" platform AFAIK).
A CMSIS-DAP compliant or J-Link debug probe. Note that the Arduino Zero has an on-board debug probe.
Steps
debug_custom.json
file to the sketch:https://docs.arduino.cc/tutorials/mkr-wifi-1010/mkr-jlink-setup#debugging-in-arduino-ide-20
foo
🙂 The
foo
variable is watched as expected.🐛 The debugger does not start. An error notification is shown:
It will no longer be possible to start the debugger for that sketch even after restarting the IDE.
The debugger can only be started once more after removing the watch expression.
Expected behavior
Debugger can be started even if a watch expression is configured.
Arduino IDE version
2.0.1-snapshot-2b2463b
Operating system
Operating system version
Additional context
The bug can be worked around by the following procedure:
Click that icon.
I bisected the introduction of the bug to 112153f / #791
I see the following log output after attempting to start the debugger under these conditions:
The problem still occurs, except without the
ENOENT
error in the logs, after I createc:\Users\per\Documents\Arduino\sketch_oct26b\.vscode\.cortex-debug.registers.state.json
, which makes me question whether that part of the output is relevant.Prior to 112153f, there was similar output:
It may be related to #412 in that this is a report of the watch expression not working if it was configured before the debugger was started.
Originally reported at:
Issue checklist
The text was updated successfully, but these errors were encountered: