Improve communication of no debugger support when board+programmer supports debugging, but custom options is misconfigured #2345
Labels
topic: CLI
Related to Arduino CLI
topic: code
Related to content of the project itself
topic: debugger
Related to the integrated debugger
type: enhancement
Proposed improvement
Describe the request
It's a follow-up of #14 based on the remark from @pillo79 made at #2342 (comment):
To detect whether the debugging feature is enabled, IDE2 uses the CLI's
IsDebugSupportedRequest
. The request must contain the FQBN of the currently selected board and the selected programmer ID. However, the FQBN might contain additional config options. In some cases, the config options (attached to the FQBN) are the tiebreaker. For example, the debugger is supported when the FQBN isesp32:esp32:nano_nora:USBMode=hwcdc
and the programmer isesptool
, but it's unsupported when theUSBMode=hwcdc
is missing from the FQBN.I found it helpful if IDE2 could tell users that the debugger is supported, but they must select the
Debug Mode (Hardware CDC)
instead of theNormal Mode (TinyUSB)
USB Mode
board config option.Describe the current behavior
As noted at #2342 (comment), the IDE2 says
Debugging is not supported by 'Arduino Nano ESP32'
but nothing more:Arduino IDE version
763fde0
Operating system
macOS
Operating system version
14.2.1
Additional context
This task likely requires CLI changes
Issue checklist
The text was updated successfully, but these errors were encountered: