The following example shows a configuration that lets you launch a debug session with custom parameters for GDB server.
If you use the gdbServer.args object, you must specify all of its attributes.
See Custom launch and debug configuration fields for more information.
launch.json with the nrf-connect debug type, with custom parameters for GDB server
{
"configurations": [
{
"type": "nrf-connect",
"request": "launch",
"config": "${activeConfig}",
"runToEntryPoint": "main",
"gdbServer": {
"args": {
"if": "SWD",
"speed": 1200,
"device": "cortex-m33",
"select": "usb=11223344",
"port": "2331",
"rtos": "/path/to/rtos/plugin",
"additionalArgs": [
"singlerun",
"nogui",
"halt",
"noir",
"silent"
]
}
},
"flash": false
}
]
}