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
It is definitely possible, and would be a nice addition. The implementation would be in dap-server component of the https://github.com/probe-rs/probe-rs repo. I'd be more than happy to help you get started on that code base if you want to submit a PR.
As a starting point, have a look at the DAP specification for Source. We construct this in the dap-server as part of creating a StackFrame from the stack trace information.
My first instinct suggests that you will need to specify a sourceReference in the StackFrame definition, so that it forces the client to issue a Source request, where the 'translation' you refer to above, will be implemented.
Once you've had a look at that, the next step I'd suggest is to create a PR in the probe-rs repo, and then tag me from there to continue the conversation in more detail.
If I try to step into any standard library function the source file is not found, which can be pretty annoying:
Rust standard libraries use the source path translation:
/rustc/<commit-hash>
⇒<sysroot>/lib/rustlib/src/rust
rust-analyzer
takes care of this translation automatically here: https://github.com/rust-lang/rust-analyzer/blob/1b283db47f8de1412c851c92bb4ce4ef039ff8ff/editors/code/src/debug.ts#L144Would it be possible to support the same here too?
The text was updated successfully, but these errors were encountered: