Error when debugging PlatformIO ESP32 Heltec ESP32 V2 project in VSCode on windows 10: ‘Failed to launch GDB’

Hi all,

Trying to debug a simple blink sketch in my PlatformIO project within Visual Studio Code on my windows 10 pc (most recent version of vs code and platform io) for the first time but getting following errors.

Been all over the internet but now lost and confused. Any help or links to a resolution will be greatly appreciated.

Visual Studio Code/PlatformIO Pop-Up Error

Failed to launch GDB: .pioinit:11: Error in sourced command file:
Remote connection closed (from interpreter-exec console “source .pioinit”)

Error from debug console
========================= [SUCCESS] Took 10.50 seconds =========================

    PlatformIO Unified Debugger -> http://bit.ly/pio-debug

    PlatformIO: debug_tool = esp-prog

    PlatformIO: Initializing remote target...

    Open On-Chip Debugger v0.10.0-esp32-20190708 (2019-07-08-11:04)

    Licensed under GNU GPL v2

    For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html

    none separate

    adapter speed: 20000 kHz

    Info : Configured 2 cores

    esp32 interrupt mask on

    Info : tcl server disabled

    Info : telnet server disabled

    Error: no device found

    Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'

    Warn : Flash driver of esp32.flash does not support free_driver_priv()

    Warn : Flash driver of irom does not support free_driver_priv()

    Warn : Flash driver of drom does not support free_driver_priv()

    .pioinit:11: Error in sourced command file:

    Remote communication error. Target disconnected.: No error.

You don’t mention a debug adapter such as ESP-Prog or J-Link. Do you have one?