Skip to content

Improve communication of no debugger support when board+programmer supports debugging, but custom options is misconfigured #2345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
kittaakos opened this issue Jan 31, 2024 · 0 comments
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

Comments

@kittaakos
Copy link
Contributor

Describe the request

It's a follow-up of #14 based on the remark from @pillo79 made at #2342 (comment):

Just out of curiosity, what does that text say in the case of the Nano ESP32 with the wrong "USB mode"?

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 is esp32:esp32:nano_nora:USBMode=hwcdc and the programmer is esptool, but it's unsupported when the USBMode=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 the Normal 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:

Just out of curiosity, what does that text say in the case of the Nano ESP32 with the wrong "USB mode"?

That's a good point. It just says that Debugging is not supported by 'Arduino Nano ESP32'. The CLI cannot provide more information when asked via the arduino-cli debug check command. It only tells whether it's supported or not. IDE2 says to the user what the CLI says.

Arduino IDE version

763fde0

Operating system

macOS

Operating system version

14.2.1

Additional context

This task likely requires CLI changes

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details
@kittaakos kittaakos added type: enhancement Proposed improvement topic: code Related to content of the project itself topic: CLI Related to Arduino CLI topic: debugger Related to the integrated debugger labels Jan 31, 2024
@kittaakos kittaakos changed the title Improve communication of no debugger support when board+port supports debugging, but custom options is misconfigured Improve communication of no debugger support when board+programmer supports debugging, but custom options is misconfigured Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant