I am new to PlatformIO and wanted to try out debugging an Arduino Nano.
I installed PIO in VSCode (Ubuntu 22.04), created a project and followed the debugging documentation. However, I am running into the following error:
.platformio/packages/toolchain-atmelavr/bin/avr-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
I have been researching this for about an hour, and have followed several fixes (e.g. this and this, but nothing works.
After some more digging, I figured to install the .deb package of VSCode instead of the flatpack. After making python3-venv, so that VSCode could find the interpreter, I reinstalled PIO and I did not get any more errors.