The following example shows a launch.json file using the nrf-debug debug type.
Note
Using the nrf-debug debug type is required to use the extension debugger.
This debug type is used to associate the debug configuration with the extension.
The legacy nrf-connect debug type is deprecated.
launch.json with the nrf-debug debug type
{
"version": "0.2.0",
"configurations": [
{
"type": "nrf-debug",
"request": "launch",
"name": "Launch active build configuration",
"config": "${activeConfig}",
"inferiors": [
{
"elfFile": "${activeConfig}/zephyr/zephyr.elf",
"entryPoint": "main"
}
],
"preLaunchTask": "nRF Connect: Build active configuration"
},
{
"name": "Launch build_nrf52840dk_nrf52840",
"type": "nrf-debug",
"request": "launch",
"config": "c:\\Users\\joe\\workspace\\apps\\hello_world\\build_nrf52840",
"inferiors": [
{
"elfFile": "c:\\Users\\joe\\workspace\\apps\\hello_world\\build_nrf52840\\zephyr\\zephyr.elf",
"entryPoint": "main"
}
]
}
]
}