Open maxgerhardt opened 3 years ago
Had the same problem (cpp development for Arduino UNO), watch tooltip stated that it is "unable to create variable object" and I was not able to see any watched variables in UI. I tried to add some debug flags and to change port from COM3 to \.\COM3 but with no success. After playing with platformio.ini a while I gave it up and returned to original configuration I started with and ... it started working at least partially.
Now I see variable in watches but not in global/local variables.
Variable was and is still present while using list variables
in debug console
My platformio.ini
[env:uno]
platform = atmelavr
board = uno
framework = arduino
debug_tool = avr-stub
debug_port = COM3
; GDB stub implementation
lib_deps =
jdolinay/avr-debugger @ ~1.1
It still works after restarting VSC/PIO.
I am having exactly the same problem with both an Uno and a Mega2560. Is there a workaround for this?
1+
same problem
Same problem here!
I'm also having the same issue. I can see it under watch and in terminal when I print the variable.
For the given
platformio.ini
and creating a simple sketch
the global variable
lastAnalogRead
is not shownAlthough it shows up when doing a
info variables
command in the GDB console, as also see in the output above.The error does not change when the
debug_build_flags
are removed.The debugger still shows local variables as normal.
Using latest PlatformIO home and core version.