I try to use the EDBG of MKR Zero in IDE2.0 RC3 following Karl's tutorial @ https://docs.arduino.cc/tutorials/zero/debugging-with-zero. But, there is an GDB error. Error message is: Failed to launch GDB: Remote communication error. Target disconnected.: Success. (from target-select extended-remote localhost:50000)
I have no idea what's wrong here. Any suggestions?
Hi @ckuehnel. I am able to produce this error by clicking the "Start Debugging" button multiple times.
The user experience with the debugger is still a little unpolished. When you click the button, there is no feedback that something happened, and it takes a little while to start up the debugger. So it can be easy to think that the button press was not recognized and click it multiple times, resulting in this confusing error.
The good news is that the IDE's debugger always recovers from my barrages of impatient clicking after some seconds (the more times I clicked, the longer it takes) and works just as expected after that.
So my advice is to not worry about it and try to carry on with the tutorial. If you have troubles after that, please let me know. Otherwise, enjoy!