Closed domikun closed 9 months ago
You are confusing gdbPath
with serverPath
. The later is the gdb-server. The former is the path to GDB. Not the server
Your settings already seem correct. You just added some confusion by overriding gdbPath
to something that is not GDB
Describe the bug I use VSCode on windows and try to set up a debug session to my STM32F407VETx controller. For this I want to use a ST-Link GDB Server, which was shipped with Atollic IDE v9.0.0. It listens on port 6123.
After running debug session it shows following output on the debug console:
Launching gdb-server: "C:\\Program Files (x86)\\Atollic\\TrueSTUDIO for STM32 9.0.0\\Servers\\ST-LINK_gdbserver\\ST-LINK_gdbserver.exe" -p 50000 -cp "C:\\ST\\STM32CubeIDE_1.10.1\\STM32CubeIDE\\plugins\\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.0.301.202207041506\\tools\\bin" --halt
"gdbTarget" and "debuggerArgs" seems to be not defined for servertype "stlink" (check launch.json below). Where can I define arguments? And where are the arguments for -p and -cp coming from?
I also tried "servertype "external". The output is:
Launching GDB: "C:\\Program Files (x86)\\Atollic\\TrueSTUDIO for STM32 9.0.0\\Servers\\ST-LINK_gdbserver\\ST-LINK_gdbserver.exe" -q --interpreter=mi2 "-f C:\\Tmp\\TEST.log" "-p 6123"
Here the arguments are sent, but also -q and --interpreter, which are not defined for this version of gdbserver. Is it possible to remove the arguments -q and --interpreter?
Expected behavior
GDB server starts.
Environment (please complete the following information):
My launch.js:
My setting.json: