esp-rs / esp-idf-template

A "Hello, world!" template of a Rust binary crate for the ESP-IDF framework.
408 stars 49 forks source link

Wokwi GDB VSCode launch not working #227

Open OliverRhyme opened 1 month ago

OliverRhyme commented 1 month ago

Bug description

Running wokwi debugger via vscode does not work with error Unable to start debugging. The value of miDebuggerPath is invalid

To Reproduce

Steps to reproduce the behavior:

prerequisites:

  1. run cargo generate esp-rs/esp-idf-template cargo
  2. use these options
    ✔ 🤷   Which MCU to target? · esp32
    ✔ 🤷   Configure advanced template options? · true
    ✔ 🤷   Enable STD support? · true
    ✔ 🤷   ESP-IDF version (master = UNSTABLE) · v5.2
    ✔ 🤷   Configure project to use Dev Containers (VS Code and GitHub Codespaces)? · true
    ✔ 🤷   Configure project to support Wokwi simulation with Wokwi VS Code extension? · true
    ✔ 🤷   Add CI files for GitHub Action? · false
  3. open project in vscode
  4. reopen in dev container
  5. run cargo build
  6. run launch in vscode the "Wokwi GDB"

Expected behavior

Should be able to run wokwi gdb

Screenshots

N/A

Environment

Additional context

SergioGasquez commented 1 month ago

Hi! Since esp-12.2.0_20230208, gdb is no longer part of the official release that espup install, it now lives here so it needs to be separately downloaded and extracted on top of the current GCC toolchain location (/home/esp/.rustup/toolchains/esp/xtensa-esp-elf/esp-13.2.0_20230928 in the container).

That being said, I dont think we will work on fixing this at the moment, sorry.