Vscode platformio debug arduino not working

Hi to all,
i use vscode with platformio for a project and i tried to debug my code.
i found that this can be happened with library "avr8-stub".
the problem is that i have include the library but when i'm trying to debug or build or upload any arduino project, i receive the attached fault.

can anyone help me?

thank you in advance.
Antonis

#include <Arduino.h>
#include <LiquidCrystal_I2C.h>
#include<avr8-stub.h>

LiquidCrystal_I2C lcd(0x27, 20, 4);


void setup()
{
  debug_init();
  Serial.begin(9600);
  lcd.init();
  lcd.backlight();
  lcd.clear();
  lcd.print("Started");
}

void loop()
{
  for (byte i = 0; i < 10; i++)
  {
    lcd.clear();
    lcd.print(i);
    delay(300);
  }
  
}

find also my code (nothing special).

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.