Anyone here has debugg UNO in vscode by simavr?

I want to try these 2 ones:

simulation (simulavr) and
debugging (avr-gdb, AVaRICE).

in PlatformIO for VS Code, how to do it ?

This is already the default and only debug tool.

As can be seen in the thread Atmega32 debugging with avarice and avr-gdb - #2 by mate910327, it’s possible but avarice seems to have bugs which prevents this from properly working.

I’ve used simavr to debug Uno code occasionally. It’s ok, but it’s easily confused when you get into interrupts etc. It also has problems if you step into the delay() function for some reason. It just hangs at that point for me.

Don’t get me wrong, it has helped me diagnose a problem or two, it’s just not as good as the hardware debugger I have for my STM32 Blue Pill. However, that is comparing apples and durian!

Cheers,
Norm.