Problem with Arduino Nano 328

Hi there, in the past I saw an article with online debugging at Arduino Uno / Nano. I did this with my Nano and it worked well (was at the end aof 2024).

Here is the Youtoube video: https://www.youtube.com/watch?v=7wx27FcluMg

If I want degug now, I get some error: see the red text with “pioinit:13” and “:3333”. What does it mean? Has somewhere an idea to solve the problem?

Author of the video here. Could you also post your platformio.ini?

Hi. There are the “platformio.ini”. I tried some changes, without success.

[env:nanoatmega328]
platform = atmelavr
board = nanoatmega328
framework = arduino

debug_tool = avr-stub

; Set breakpoint mode
; build_flags = -DAVR8_BREAKPOINT_MODE=2

lib_deps = jdolinay/avr-debugger@ ~1.5

debug_port = \.\COM10
; monitor_port = COM5
; upload_port = COM5

Could it be possible, that teh debugger doesn’t work with newer versions of vsscode ??

Has somewhere a new version where the debugging system is working?

Hi there, has somewhere a running system yet, with current version of Visual Studio Code and PIO ?

Maybe it’s just a typo but it looks a bit strange to me.

Shouldn’t it be:

debug_port = COM10

?

@oehrle The error message suggests that this is a purely Windows-related error. May I ask if you tried flashing other programs unrelated to the AVR stub? Are you working on a cloud-based instance typical for modern office work?