arduino-esp32/tools
Luca Burelli 7a22d64be2
Implement official Arduino IDE debugger API (#9116)
* refactor(on-release): improve platform.txt path replacements

Use regexs to replace all occurrences of `{runtime.platform.path}` with
the correct `{runtime.tools.*.path}`, regardless of directory separator,
and remove dependency on specific text around each path.

Note that the order has been changed to ensure that the longest paths
are replaced first, to avoid replacing parts of other paths.

* fix(platform): Windows backslash cleanups

Ensure Windows paths properly use a backslash as folder separator.

* feat(platform)!: use new Arduino Debug API

Implement sketch debugging according to the official Arduino
Platform Debug Specification [1].

The biggest improvement is that now `launch.json` can be fully
customized by the core (including the type of each entry),
so there is no need to copy files in the sketch folder.
In particular, `debug_custom.json` is not used anymore.

[1] https://arduino.github.io/arduino-cli/latest/platform-specification/#sketch-debugging-configuration

BREAKING CHANGE: This commit requires Arduino IDE 2.3.0 or later to use
the debugging features. Older versions will no longer be able to start
a debug session successfully.

* feat(debug): pass objdump path to resolve globals

Cortex-debug requires objdump to be in the same folder as gdb, or needs
the full path to the executable in the `launch.json` file. This is now
possible with the new debugging API.

* feat(debug): conditionally enable debug button on Nano ESP32

If the `debug.executable` variable is null or unset, the Debug button
appears grayed out. The new IDE also takes current parameters into
account, allowing to conditionally enable the Debug button only when
some conditions are met.

* on_release: allow single board packages

---------

Co-authored-by: Martino Facchin <m.facchin@arduino.cc>
2024-02-09 12:53:18 +02:00
..
ide-debug/svd Implement official Arduino IDE debugger API (#9116) 2024-02-09 12:53:18 +02:00
partitions Add Zigbee examples (#9024) 2024-02-01 15:38:07 +02:00
add_lib.sh Add Arduino lib to arduino as IDF component (#8721) 2023-10-06 15:49:03 +03:00
espota.exe [REDO] Update espota.py (#8797) 2023-10-25 14:59:08 +03:00
espota.py [REDO] Update espota.py (#8797) 2023-10-25 14:59:08 +03:00
gen_crt_bundle.py Add certificate bundle capability to WiFiClientSecure (#6106) 2022-01-19 15:42:36 +02:00
gen_esp32part.exe v2.0.0 Add support for ESP32S2 and update ESP-IDF to 4.4 (#4996) 2021-04-05 14:23:58 +03:00
gen_esp32part.py ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
gen_insights_package.exe Fix gen_insights_package.py missing on release (#7650) 2023-01-06 16:50:43 +02:00
gen_insights_package.py Draft: Esp insights library support (#7566) 2022-12-22 17:42:56 +02:00
get.exe ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
get.py ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00
platformio-build.py ESP-IDF v5.1 (#7733) 2023-10-05 14:54:25 +03:00