Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

feat(dap): std source map and custom dap configuration #231

Open
wants to merge 1 commit into
base: modularize_and_inlay_rewrite
Choose a base branch
from

Conversation

arashsm79
Copy link

Add a source map for libstd; this allows stepping into the standard library source code while debugging.
By setting an option in the configuration, users can choose to set up a mapping that will be used by
the adapter when stepping into the standard library.
Allow custom configuration to be passed to the adapter.

sourceMap launch configuration is explained in the lldb-vscode and CodeLLDB documentations.

The method used to create the source mapping

rustc --version --verbose # to find the commit hash of rustc
rustc --print sysroot     # to find the path of rust src

is described in the following references:

Add a source map for libstd. Previously, stepping into the standard library
functions were not possible but now by setting an option in the
configuration, users can choose to set up a mapping that will be used by
the adapter when stepping into the standard library.
Allow custom configuration to be passed to the adapter.
@LennyPhoenix
Copy link

+1 on this, it would be nice to not need a fork in order to change the debug adapter launch settings!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants