Skip to main content
Explorer
Jul 23, 2026 11:57 AM UTC
Solved

How to hot-plug debugger to STM32 using VS Code

Hi, how do I configure launch.json to use hot plug?

Florent V
Florent VBest answer
ST Employee
Jul 25, 2026 7:36 AM UTC

Hi ​@pr.tsmaz,

Here the debug configuration to use hot plug:
 

{
"type": "stlinkgdbtarget",
"request": "launch",
"name": "STM32Cube: Launch ST-Link GDB Server",
"origin": "snippet",
"cwd": "${workspaceFolder}",
"preBuild": "${command:st-stm32-ide-debug-launch.build}",
"serverReset": "None",
"imagesAndSymbols": [
{
"symbolFileName": "${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}"
}
]
}

The serverReset attribute is set to None (to avoid reset at startup)
Define only symbolFileName in the imagesAndSymbols to load only the symbols
The runEntry attribute is not necessary is the hot plug case

 

KR,
/Flo

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

1 reply

Florent V
Florent VBest answer
ST Employee
Jul 25, 2026 7:36 AM UTC

Hi ​@pr.tsmaz,

Here the debug configuration to use hot plug:
 

{
"type": "stlinkgdbtarget",
"request": "launch",
"name": "STM32Cube: Launch ST-Link GDB Server",
"origin": "snippet",
"cwd": "${workspaceFolder}",
"preBuild": "${command:st-stm32-ide-debug-launch.build}",
"serverReset": "None",
"imagesAndSymbols": [
{
"symbolFileName": "${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}"
}
]
}

The serverReset attribute is set to None (to avoid reset at startup)
Define only symbolFileName in the imagesAndSymbols to load only the symbols
The runEntry attribute is not necessary is the hot plug case

 

KR,
/Flo

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.