STM32CubeIDE for VSCode debug error: Failed to get gdb version
Hello,
I am using VSCode on Windows with the STM32CubeIDE for VSCode extension.
Before installing the extension, I had already installed and configured these tools separately on my system:
- CMake
- Arm GNU Toolchain (arm-none-eabi-gcc, arm-none-eabi-gdb)
- clangd
After installing the STM32CubeIDE for VSCode extension, build works, but debug fails to start. I get the following popup error:
bound doStepStartGdbClientDebug Failed: Failed to get gdb version.
I would like to ask whether this issue may be related to how the extension detects GDB, conflicts with environment variables, or path priority when multiple toolchains are installed.
Observed behavior
- I already had a standalone ARM toolchain installed before installing the STM32CubeIDE for VSCode extension.
- After installing the extension, debug no longer starts correctly.
- The popup error is:
bound doStepStartGdbClientDebug Failed: Failed to get gdb version. - My current suspicion is that the extension is either:
- not finding the correct arm-none-eabi-gdb, or
- finding an incompatible GDB executable.
My questions
- When starting a debug session, does the STM32CubeIDE for VSCode extension use:
- a bundled GDB,
- the GDB from a local STM32CubeIDE installation,
- or the GDB found in the system PATH?
- If there are multiple ARM toolchains installed on the system, what is the recommended way to force the extension to use one specific GDB path?
- Is this a known issue related to any of the following?
- multiple arm-none-eabi-gdb executables in PATH
- environment variable priority changes after installing CMake / clangd / other tools
- the extension invoking a non-ARM GDB by mistake
- the selected GDB executable failing to start because of missing DLL dependencies
- Is there a recommended minimal configuration to make sure STM32CubeIDE for VSCode uses only the ST-recommended toolchain and debug components?
Environment
- OS: Windows
- IDE: VSCode
- Extension: STM32CubeIDE for VSCode
- Separately installed tools: CMake, Arm GNU Toolchain, clangd
- Failure point: immediately after clicking Debug
- Build status: build works, issue happens at debug startup
Error message
bound doStepStartGdbClientDebug Failed: Failed to get gdb version.
addition:create from

If needed, I can provide:
- launch.json
- settings.json
- output of arm-none-eabi-gdb --version
- full VSCode debug log
- STM32CubeIDE for VSCode extension logs
Thank you.
