If you include a gdbServer field in your launch.json file, the debugger launches a GDB server before starting the debugging session. This field is optional and replaces the deprecated serverArgs, serverpath, and serverAddress fields.
The gdbServer field has the following attributes:
| Attribute | Description | Type | Default |
|---|---|---|---|
address |
Address and port for the GDB server. Use ${port} to insert the auto-selected port passed to the GDB Server. |
String | 127.0.0.1:${port} |
path |
Path of the JLinkGDBServerCL executable. Set to null to not launch a new server. This requires that an existing GDB server is already running at the address indicated by serverAddress. |
String or null | |
args |
Override the arguments to pass to the GDB Server. See gdbServer.args attributes below for details. |
Object or string | See below |