2026-03-14 3:07 AM - edited 2026-03-14 3:13 AM
After a recent update I am unable to run my code from vscode on my Windows 11 machine. The compilation succeed, but when I click on Run -> Start Debugging nothing happens. The System Bundle Manager shows that I have installed all the latest versions, but the bundle manager of the projects shows only a few of those bundles (see attached). How can I install the bundles in the project section?
Note that I have already tried the usual things: remove the build, .vscode and .settings folders, rebooting the pc, upgrading the stlink firmware.
I tested the same code on another linux pc and there it works as expected. On the linux PC `stlink-gdbserver` was installed at project level
Solved! Go to Solution.
2026-03-16 12:34 AM
I fixed the problem. The issue was that the extension did not create the .vscode/launch.json file. The fix was pretty easy: Run/Add configuration/Stm32Cube: STM32 Launch STLink GDB Server. I wonder why I had to manually do this operation, I never had to do it.
Thanks to the people who answered to the post
2026-03-15 9:32 AM
Hi @DamianoF
From what I observed, the stlink-gdbserver gets installed and locked the first time a debug session is launched for the project.
When you say nothing happens, is there anything in the debug console, even with "verbose" set to true?
When the project was imported, did the project setup complete correctly?
BR,
Elliot
2026-03-15 10:47 PM
@DamianoF
Works on Linux but not Windows ... any antivirus issue ?
On my side works like a charm Windows11.
Project level install happens if able to launch ... if any failure prior no chance to.
Could you have a try relying on a VS Code integrated terminal:
cube stlink-gdbserver --version On my side it reports:
stlink-gdbserver/7.13.0+st.3/bin/ST-LINK_gdbserver.exe version: 7.13.0
2026-03-16 12:34 AM
I fixed the problem. The issue was that the extension did not create the .vscode/launch.json file. The fix was pretty easy: Run/Add configuration/Stm32Cube: STM32 Launch STLink GDB Server. I wonder why I had to manually do this operation, I never had to do it.
Thanks to the people who answered to the post
2026-03-16 1:11 AM
@DamianoF
I agree should not have to do and myself Idon't have to.
Which VS Code version and OS are you relying on ?
launch.json is pure VS Code stuff according to me
2026-03-16 1:13 AM
VsCode 1.111.0 and OS Windows 11 25H2
2026-03-16 2:39 AM
Hi @DamianoF, @Cartu38 OpenDev
Note regarding the creation of the launch.json file and the choice of debug configuration to use. This follows rules defined by VSCode.
If there is no launch.json file, the "Run & Debug" button and the "Run → Start Debugging" menu will use a debug configuration based on the selection explained below. However, in any case, they will not create a launch.json file.
They will use a debug configuration "on the fly".
To create a launch.json, you can click on "create a launch.json file" from the debug activity bar.
If launch.json exists:
If launch.json does not exist:
Kind Regards,
/Flo