Use inferiors to load several images that run on the same processor into one GDB session.
Set entryPoint only for the images at whose entry points the debugger must stop.
Debug multiple images on one processor
{
"configurations": [
{
"type": "nrf-debug",
"request": "launch",
"name": "Launch application and MCUboot",
"config": "${activeConfig}",
"inferiors": [
{
"elfFile": "${activeConfig}/zephyr/zephyr.elf",
"entryPoint": "main"
},
{
"elfFile": "${activeConfig}/mcuboot/zephyr/zephyr.elf"
}
]
}
]
}
When you start debugging a sysbuild configuration from the Actions View, the extension creates the inferiors configuration automatically from your processor and stop-point selections.