Platformio with ESP32 Arduino: How to Change Variable values in DEBUG mode

You can SET VARIABLE VALUES IN WATCH WINDOW using expressions.


sets variable i to 0 every time you press play/continue button on debug screen. If you do not now to set i to 0 anymore, just delet this lite on watch window See the attached picture below:

Example how to update with the string “Teste”:


It is not beautiful, but works, and you can fill with anything separated as bytes/chars. I hope it helps who are struggling with VSCode/Platformio debugging features.

See the image below: