I am trying to debug an Arduino with PlatformIO on Windows. To do that I have followed this post
It worked perfectly on Linux (Ubuntu 18). But when I try the same on Windows 10 it does not work.
It does not work means that the Building in Debug Mode works perfectly, see image below
But the debug console is completely empty and it does not stop in any of the breakpoints
I have just started debugging Blink Code as simple as possible
#include <Arduino.h>
#include "avr8-stub.h"
int counter = 0;
// the setup function runs once when you press reset or power the board
void setup()
{
// initialize digital pin LED_BUILTIN as an output.
debug_init();
pinMode(LED_BUILTIN, OUTPUT);
// Serial.begin(9600);
}
// the loop function runs over and over again forever
void loop()
{
// Serial.println("Loop Started");
counter = counter + 1;
breakpoint();
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Does someone have any idea what can it be the problem?
Thank you very much in advance
Hi, I have the same issue, problem is, when i use the general like variables and incrementing decrementing of it and really simple stuff that is not really Arduino related, debugging works just fine, it starts and let me to go to the next steps with the console, the problem is, when I add additional code that interacts with the sensors on the Arduino (in my case gyroscope), the debug starts just fine, but it does not let me to go to the next steps of the program, does anyone know why it is happening? im not sure why, thanks.