Closed stucash closed 7 months ago
Added a one-liner tutorial to demonstrate that we can achieve source map with CodeLLDB by adding an extra
sourceMap
item in vimspector configuration file. Source Map enablesstep-into
functionality for Rust standard library code.Specifically, we'll add the
sourceMap
item inconfigurations
section of the.vimspector.json
,{ "adapters": { // Some configs for adapters }, "configurations": { "request": "<launch or attach>", "sourceMap": { "from_path" : "to_path"} } }
In Linux, we could also find the
from_path
by:
$ strings target/debug/<your-binary-name> | grep -o '^/rustc/[^/]\+/' | uniq
other than using the disassembly window.
Added a one-liner tutorial to demonstrate that we can achieve source map with CodeLLDB by adding an extra
sourceMap
item in vimspector configuration file. Source Map enablesstep-into
functionality for Rust standard library code.Specifically, we'll add the
sourceMap
item inconfigurations
section of the.vimspector.json
,In Linux, we could also find the
from_path
by:strings target/debug/<your-binary-name> | grep -o '^/rustc/[^/]\+/' | uniq
other than using the disassembly window.