Simavr Debugging

I’m trying to debug code for arduino uno using simavr, but I can’t get it to work even with the simplest of projects. The last error it gives is:

.pioinit:12: Error in sourced command file:
Remote target does not support flash erase

Any help would be much appreciated

I’m not able to reproduce that.

With the standard

[env:uno]
platform = atmelavr
board = uno
framework = arduino
debug_tool = simavr

and blinky code shown above. Please post a minimal project that fails.

Weird. That exact setup is what I tried.

I guess I’ll try deleting my ~/.platformio folder and trying again?

Now I get a new error:
error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

I’m on Ubuntu 23.10, which doesn’t include ncurses 5 anymore. I fixed this before by linking platformio’s avr-gdb to my system’s avr-gdb, but maybe that doesn’t play nice with simavr?