2026-04-13 9:38 PM
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:
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.
bound doStepStartGdbClientDebug Failed: Failed to get gdb version.
addition:create from
If needed, I can provide:
Thank you.
2026-04-13 9:46 PM
2026-04-13 10:16 PM
success by add my gbd path
How to solve it rootly
2026-04-14 1:29 AM
Hi @ShienLin,
The error message indicates that the tcp ports 61234 and/or 61235 are already used (or reserved by the OS).
What you can do is either to identify the process using this port and stop it, or define another unbound port in your launch.json using serverPort attribute:
2026-04-14 2:03 AM
Same
2026-04-14 4:26 AM
Hi @ShienLin,
There are two concepts here.
If the gdb attribute is not set in the debug configuration, then the adapter will use the GDB client provided by an ST bundle. To know which ST-provided GDB bundle version is used by the project, check the project’s Bundle Manager view (STM32Cube activity bar -> STM32Cube Bundles Manager view in left panel).
Of course it is still possible to use your own GDB client by setting the gdb attribute as you did.
By default, the port for the ST-Link GDB Server is 61234. It can be changed via serverPort.
In your case, port 61234 seems to be used by another process. So, to use your GDB client, you need to set both the gdb attribute and serverPort.
Kind Regards,
/Flo