Arduino IDE 2.3 has just been released with a range of bug fixes and improvements, but the main change is that the debug feature is not experimental anymore and is now considered stable.
Bug fixes include addressing CVE-2023-4863 security flaw (See GitHub for related commits) and based on the wording used in the announcement it looks to be the only one… So the main news is that the Debug feature is now fully incorporated into the IDE.
But what is it exactly? The new documentation website explains that Arduino CLI 0.9.0 and Arduino IDE 2.x support “sketch debugging” with openocd server. Arduino also explains it’s currently supported by Arduino boards based on the Mbed core including GIGA R1 WiFi, Portenta H7, Opta, Nano BLE, and Nano RP2040 Connect, and Renesas-based boards such as UNO R4 and Portenta C33 will get support very soon. The company also says they are working closely with Espressif, and the next release of the Arduino ESP32 core will support the new debug framework.
The documentation does not really provide a high-level overview and focuses on configuration options. So while I don’t own any of the supported boards, I installed the Arduino IDE 2.3.0, configured supported for Arduino Giga R1, and tried to click on the Debug button placed on the right of the Upload button. It complained that I had not selected a programmer.
The Giga R1 supports ARM CMSIS-DAP compatible, BlackMagic, JLInk, and STMicroelectronics STLINK programmers which are hardware devices used for programming and debugging the board enabling developers to add breakpoints and set in and out of functions. The live debugger was actually announced when Arduino IDE 2.0 was relased, but (another part of) the documentation has more details with a good overview of the debugging capabilities. It can be used with the Arduino Zero without external hardware since the little board already features a hardware debugger.
You’ll find Arduino IDE 2.3.0 for Windows, Linux, and macOS in the software section of the Arduino website.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.