Arduino mkr zero failed in Arduino 2.0 debugging

I noticed that Arduino 2.0 can directly debug Arduino mkr zero.
I connected to my computer through the micro USB of Arduino mkr zero, uploaded the program I wanted to debug, and then clicked on debug. The result was a failure and the screenshot is as follows
May I ask if anyone has successfully debugged, or what do I need to do?

Zero can be debugged via USB but not MKR Zero, I made the same mistake

Thank you very much for your prompt reply.
May I ask if there is a solution or how it is debugged

@Star you will need to obtain a CMSIS-DAP compliant debug probe or a Segger J-Link and connect it between your computer and the MKR Zero board.

You can learn how to use the Arduino IDE 2.x integrated sketch debugger by reading this tutorial:

You will need a hardware debugger and to solder wires. Easier to buy Zero..

I agree with glutio that the Zero board provides the most convenient debugging experience.

The reason is that this board has a built-in debug probe. So you don't need to connect any external hardware in order to use it with the Arduino IDE 2.x integrated sketch debugger as is the case with all the other compatible boards. You only need to connect the Zero board to your computer with a USB cable connected to the "Programming Port" USB socket on the board, just the same as you do when uploading a sketch to the board. You can then start the debugger session by clicking the "Start Debugging" button in Arduino IDE.

Thank you very much for your reply
I am only interested in this. If additional equipment is needed for debugging, this is not my purpose, as Arduino mkr zero is not my main development board.

Thank you very much for your reply
I am only interested in this. If additional equipment is needed for debugging, this is not my purpose.
Thank you again for your reply

Great. Then the Zero is definitely the board for you. You can purchase one from the official Arduino Store:

Or Amazon:

Or from an authorized distributor:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.