Arduino Zero debug error with IDE 2.0

Hi @hgycap and @peter28357 I am able to reproduce the problem and found it is caused by having a "watch" expression configured, as you can see here in the screenshot shared by @hgycap:


I have submitted a bug report to the Arduino IDE developers:


The workaround is to remove any watch expressions before starting the IDE:

  1. Hover the mouse pointer over the heading of the "WATCH" section in the debugger view. You will now see an icon with an X at the right side of the heading:
    image
    Click that icon.
  2. Start the debugger.
  3. Replace any watch expressions you need.

Please let me know if you have any questions or problems while following those instructions.