arduino-pico icon indicating copy to clipboard operation
arduino-pico copied to clipboard

Feature Request - Update the core to support debugging with Arduino IDE 2.3 and Arduino CLI 0.35.0

Open kittaakos opened this issue 1 year ago • 1 comments

Please make the platform's debugging feature compatible with the latest Arduino IDE + CLI versions.

Arduino CLI's (>=0.35.0) debug feature is now based on a standard framework documented in the new specifications and guidelines. More details are in the blog post.

Arduino IDE 2.3.0 uses the latest CLI APIs for the debugger feature. Starting from https://github.com/arduino/arduino-cli/pull/2391, the programmer is mandatory to retrieve the debug configuration from the CLI and start the debugger in IDE2. Otherwise, the debug feature will be disabled for the board in IDE2 (https://github.com/arduino/arduino-ide/issues/2368).

Please define the programmers so that the platform's debug capability can be used in Arduino IDE 2.3.0. Thank you!

Arduino IDE users using the current version of Raspberry Pi RP2040 Boards platform must use Arduino IDE version 2.2.1 to enable the debugging.


Dev notes:

  • There is a new directive in the Arduino platform spec: programmer.default
  • Related, but for the ESP32 platform: https://forum.arduino.cc/t/ide-2-3-0-debugging-esp32s3-using-built-in-usb-jtag/1222051/2
  • PR to enable the debugging with the latest Arduino standards for the ESP32 platform: https://github.com/espressif/arduino-esp32/pull/9116

kittaakos avatar Feb 13 '24 12:02 kittaakos

Thanks for the detailed info! Would you like to take a stab at this? You seem to have a good idea of the changes needed, already. OTW, it'll go in the queue.

earlephilhower avatar Feb 13 '24 16:02 earlephilhower

The Arduino CLI will relax the constraints and make the programmer optional for the debug --info command: https://github.com/arduino/arduino-cli/pull/2540.

See confirmation: https://github.com/arduino/arduino-ide/issues/2368#issuecomment-1952364204.

I am closing this enhancement because it is not required now.

kittaakos avatar Feb 19 '24 12:02 kittaakos