Skip to content
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

The latest Raspberry Pi RP2040 Boards platform's debug configuration is incompatible with 2.3.0 #2368

Closed
3 tasks done
Kabron287 opened this issue Feb 12, 2024 · 14 comments · Fixed by #2371
Closed
3 tasks done
Labels
conclusion: resolved Issue was resolved topic: CLI Related to Arduino CLI topic: debugger Related to the integrated debugger type: imperfection Perceived defect in any part of project

Comments

@Kabron287
Copy link

Describe the problem

Debug option absent in 2.3 while it present in 2.2.1
Debug23

To reproduce

Just run app.

Expected behavior

Debug option absent

Arduino IDE version

2.3

Operating system

Windows

Operating system version

10

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@Kabron287 Kabron287 added the type: imperfection Perceived defect in any part of project label Feb 12, 2024
@kittaakos
Copy link
Contributor

What does the tooltip tell when you hover over the disabled Debug toolbar item?

@kittaakos kittaakos added the status: waiting for information More information must be provided before work can proceed label Feb 12, 2024
@Kabron287
Copy link
Author

Kabron287 commented Feb 13, 2024

What does the tooltip tell when you hover over the disabled Debug toolbar item?

No programmer selected for Raspberry Pi Pico W
Pico DebugProbe is connected.

@kittaakos
Copy link
Contributor

kittaakos commented Feb 13, 2024

OK. It is not a bug, but let's check. What happens when you select the programmer from the Tools > Programmer menu?

A programmer must be selected for the debugger to start in Arduino IDE 2.3.0+: arduino/arduino-cli#2443.

IDE2 intentionally disables the debug functionality when no board or programmer is selected. See #2342 for more details. We track a related follow-up at #2345 that is specifically connected to the custom board options.

You can define a default programmer in your boards.txt if you're a platform developer. Or you can request this as a feature from your core developers. For more details, see arduino/arduino-cli#2416.

@kittaakos kittaakos added the topic: debugger Related to the integrated debugger label Feb 13, 2024
@Kabron287
Copy link
Author

OK. It is not a bug, but let's check. What happens when you select the programmer from the Tools > Programmer menu?

Please, show me where Programmer is?
Debug23_1

@kittaakos kittaakos removed the status: waiting for information More information must be provided before work can proceed label Feb 13, 2024
@Kabron287
Copy link
Author

I see no meanfull information in the links, you provided.

@kittaakos
Copy link
Contributor

Thank you for providing more information on the problem.

I have opened a follow-up: earlephilhower/arduino-pico#2003

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

I decided to leave this issue open for visibility reasons, but this problem cannot be fixed in this repository. I appreciate your understanding.

@kittaakos kittaakos added the conclusion: moved Issue/PR moved to another repository label Feb 13, 2024
@kittaakos kittaakos changed the title Debug option absent in 2.3 The latest Raspberry Pi RP2040 Boards platform's debug configuration is incompatible with 2.3.0 Feb 13, 2024
@fpistm
Copy link

fpistm commented Feb 15, 2024

Have the same issue with STM32 core. Honestly I don't understand why a programmer is requested now. It is not very clear how to properly support the new requested configuration.

@kittaakos
Copy link
Contributor

We created a tester build and made the programmer optional for the debugger. Please help us and let us know how the changes work on your system. The PR is here: #2371. See the documentation on how to use the tester builds and report back: https://github.com/arduino/arduino-ide/blob/main/docs/contributor-guide/beta-testing.md. We appreciate your help.

@fpistm
Copy link

fpistm commented Feb 16, 2024

Hi @kittaakos
Thanks for the quick feedback and implementation. I will test next monday and give you a feedback.

@ubidefeo
Copy link

Honestly I don't understand why a programmer is requested now.

@fpistm unfortunately we didn't have enough input/feedback during implementation.
We were working with Espressif and noticed how they hacked debugging leveraging our debug_custom.json which we always said was a hack, unsupported, experimental.
Too bad many devs went Arduino 1.x style and just hacked the platform.
When it came to making debugger something that 3rd party core devs could really leverage, the hacks broke.

I'm confident we did our best in offering an extensible debugging platform, but must apologise if we broke things for some.
Hope we can make it up to you all 🙏🏼

u.

@fpistm
Copy link

fpistm commented Feb 19, 2024

Hi @kittaakos
I've tested your PR and confirm it works as expected:
image

@ubidefeo
No worry, I know it was experimental. I've also opened some GH issues around the debug config.
My concern was simply to understand why a programmer description was required within the 2.3.0 version. I will investigate the new way the debug should be defined/extended and update the STM32 core to enhance debug user experience.
Finally, I know you (and all Arudino IDE/CLI contributors) do your best to provide good user experience. So thank you all 👏 for all the hard work, I know how it can be hard.

And thanks for fixing the issue with the debug interface within the 2.3.1, as I met it during my first attempts to get the debug working again within the 2.3.0 version and wonder if I made a mistake 😉 .

@kittaakos
Copy link
Contributor

We created a tester build and made the programmer optional for the debugger. Please help us and let us know how the changes work on your system. The PR is here: #2371. See the documentation on how to use the tester builds and report back: https://github.com/arduino/arduino-ide/blob/main/docs/contributor-guide/beta-testing.md. We appreciate your help.

@Kabron287, could you please try out the tester build with the fixes 👆? If they work, we can do a patch release. Thanks for the help!

@kittaakos
Copy link
Contributor

Linking #103 here.

@Kabron287
Copy link
Author

Kabron287 commented Feb 19, 2024

Solved.
And it works now!
On both cores.
Debug

@kittaakos kittaakos added topic: CLI Related to Arduino CLI and removed conclusion: moved Issue/PR moved to another repository labels Feb 19, 2024
kittaakos pushed a commit that referenced this issue Feb 19, 2024
Ref: arduino/arduino-cli#2540
Closes: #2368

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Feb 19, 2024
Ref: arduino/arduino-cli#2540
Closes: #2368

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Feb 19, 2024
Ref: arduino/arduino-cli#2540
Closes: #2368

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Feb 19, 2024
Ref: arduino/arduino-cli#2540
Closes: #2368

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
@kittaakos kittaakos added the conclusion: resolved Issue was resolved label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: CLI Related to Arduino CLI topic: debugger Related to the integrated debugger type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants