You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,15 +48,22 @@ This section describes the contributed pseudo debugger types and their support t
48
48
49
49
#### CMSIS Debugger (pyOCD) - `cmsis-debug-pyocd`
50
50
51
-
TODO:
52
-
- Assumed setup and where to find things.
53
-
- Automatically filled in values on debug start.
51
+
The `cmsis-debug-pyocd` debugger type allows to add default debug configurations to the workspace's `launch.json` file to debug via GDB and pyOCD. The actually used debugger type is `gdbtarget`.
52
+
53
+
In addition this extension contributes a debug configuration resolver which automatically fills the following gaps during debug launch:
54
+
- If option `target`.`server` is set to `pyocd`, then it expands this option to the absolute path of the built-in pyOCD distribution.
55
+
- Adds/extends the `target`.`serverParameters` list of `pyocd` command line arguments:
56
+
- Prepends `gdbserver` if not present.
57
+
- Appends `--port` and the corresponding `port` value if `target`.`port` is set.
58
+
- Appends `--cbuild-run` and the corresponding `cbuildRunFile` path if `cmsis`.`cbuildRunFile` is set.
59
+
60
+
**Note**: The built-in version of pyOCD supports the command line option `--cbuild-run`. However, this is a new option which isn't contained yet in releases outside this extension.
The `cmsis-debug-jlink` debugger type allows to add default debug configurations to the workspace's `launch.json` file to debug via GDB and the Segger J-Link GDB server. The actually used debugger type is `gdbtarget`.
65
+
66
+
**Note**: The generated default debug configuration uses `JLinkGDBServer` as `target`.`server` setting. The executable with this name has slightly differing behavior depending on your host platform. It launches a GUI-less server on Linux and MacOS. Whereas a GDB server with GUI is launched on Windows. Please change the value to `JLinkGDBServerCL` to suppress the GUI on Windows.
60
67
61
68
## Trademarks
62
69
Visual Studio is a trademark of the Microsoft group of companies.
0 commit comments