The following table lists the attributes that you can use within the args object in the gdbServer field.
Important
If you use the args as an object, you must specify all of these attributes.
If you use it as a string, you can specify additional arguments directly.
For an example of how to specify these attributes, see the How to customize launch and debug configurations page.
| Attribute | Description | Type | Default |
|---|---|---|---|
device |
The SEGGER J-Link device identifier, for example nRF52840_xxAA. Defaults to device type obtained from the build. |
String | ${device} |
if |
Interface type for connecting to the target. | String | SWD |
select |
Selection method for the debug probe. | String | usb=${snr} |
speed |
SWD interface speed. | String or integer | 12000 |
port |
An auto selected port allocated for the server on the localhost. | String or integer | ${port} |
rtos |
The J-Link Zephyr RTOS plugin location. | String | ${rtosPlugin} |
jlinkscriptfile |
Path of an optional J-Link script. Omit the argument not to use it. | String | ${jlinkScript} |
additionalArgs |
Any additional flags in the form of "arg" or { "arg": value" }. For example: "nohalt". These are passed to the server as -arg or -arg <value>. |
Array of strings | ['singlerun', 'nogui', 'halt', 'noir', 'silent'] |