Did you ever wonder what the mEDBG debugger is good for that sits on the UNO Wifi Rev2 board? Well, with a bit of additional software, you actually can debug the sketches running on this board.
You can now use the Arduino IDE 2 debugger on the UNO WiFI Rev2. The only thing you have to do is to add an entry to the list of "Additional Boards Manager URLs" and then upgrade (or install) the respective package.
If you use MCUdude's MegaCoreX package then you need to add:
https://felias-fogg.github.io/MegaCoreX/package_MCUdude_MegaCoreX_index.json
If you use the official Arduino board package, use:
https://felias-fogg.github.io/ArduinoCore-megaavr/package_felias-fogg_ArduinoCore-megaavr_index.json
Then upgrade to the most recent version, which should have a -preX postfix.
You can find documentation here: https://pyavrocd.io