If you want to debug one of the debugWIRE MCUs in the Arduino IDE 2, there is, unfortunately, nothing that works out of the box. Three cores exist that support the programming of these chips, namely, ATTinyCore for the classic ATtinys, MicroCore for the ATtiny13, and MiniCore for the ATmegaX8 family. Recently, I extended the corresponding board manager files to make debugging possible by simply clicking on the debug symbol. You only need to insert the following board manager URLs in the preference dialog (MiniCore and MicroCore are coming soon):
https://felias-fogg.github.io/ATTinyCore/package_drazzy.com_ATTinyCore_index.json
After that, install the most recent version of the cores. And that is all! Well, you might have to modify the board so that the requirements on the electrical characteristics of the RESET line are met. And as a Linux user, you may have to fiddle with some permissions. As hardware debuggers, you can use all of Microchip’s EDBG-based hardware debuggers and dw-link.