Skip to main content
Visitor
July 23, 2026
Question

How to hot-plug debugger to STM32 using VS Code

  • July 23, 2026
  • 1 reply
  • 24 views

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

1 reply

Florent V
ST Employee
July 25, 2026

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.