Believe me, i have uninstalled and reinstalled many times, clearing all traces of the old (except the source) each time. And rebooting.
To facilitate this, I have this purge-arduino script in my path:
#!/usr/bin/env ksh
cd ~
echo "Deleting arduino setup...."
rm -rf ~/Arduino/libraries/* \
~/.arduino* \
~/.config/Arduino* \
~/.config/arduino* \
$(find ~/.cache -type d -iname "arduino*")
echo "Done."
And my /arduino- ide directory looks like this:
> ls -l
-rwxr-xr-x 1 user user 197 Feb 18 14:09 arduino.desktop
lrwxrwxrwx 1 user user 38 Feb 18 14:00 arduino-ide -> arduino-ide_2.2.1_Linux_64bit.AppImage
-rwxrwxr-x 1 user user 183123134 Feb 17 08:48 arduino-ide_2.2.1_Linux_64bit.AppImage
-rwxrwxr-x 1 user user 190624130 Feb 18 14:20 arduino-ide_2.3.3_Linux_64bit.AppImage
-rwxrwxr-x 1 user user 201578934 Feb 14 11:46 arduino-ide_2.3.7_Linux_64bit.AppImage
(2.3.3 was because it works for you.) I have tried to enable debug with all the versions you see there. I have also tried various versions of the board -not so easy to document-. In short , with combinations and permutations, i have spent many hours on the quest for a working Arduino / esp32 / debug combination. Hence this post.