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
I have added an update for rust. Rust strings is not built up around end escaping strings with \0. There for a native debugger like GDB will not show strings correctly in the Locals area when stepping through a debugging session. Rust has a tool for this which is basically some python formatters wrapped around gdb. All this is shipped with the rust toolchain when installing rust, so rust-gdb is on the PATH and ready to be called.
This brings me to my update of the configuration: add a gdbpath that tells the debugger to use rust-gdb instead of the plain version of gdb.
I have added this configuration so others can enjoy using dap mode while coding rust.
Copy file name to clipboardExpand all lines: docs/page/configuration.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -240,6 +240,19 @@ Using <https://github.com/WebFreak001/code-debug>
240
240
241
241
Then do `dap-debug` or `dap-debug-edit-template` and selet GBD or
242
242
LLDB configuration.
243
+
244
+
### Rust
245
+
To fully support rust and pretty printing of strings when debugging, remember to add set `gdbpath` to `rust-gdb` in your debug template. An example template would be
246
+
247
+
```elisp
248
+
(dap-register-debug-template "Rust::GDB Run Configuration"
0 commit comments