The following example attaches the debugger to an application that is already running.
Set request to attach and omit entryPoint so the debugger does not add an entry-point breakpoint.
Attach to a running target
{
"version": "0.2.0",
"configurations": [
{
"type": "nrf-debug",
"request": "attach",
"name": "Attach to active build configuration",
"config": "${activeConfig}",
"inferiors": [
{
"elfFile": "${activeConfig}/zephyr/zephyr.elf"
}
]
}
]
}