]> git.lizzy.rs Git - rust.git/commit
Merge #4222
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Thu, 30 Apr 2020 17:03:26 +0000 (17:03 +0000)
committerGitHub <noreply@github.com>
Thu, 30 Apr 2020 17:03:26 +0000 (17:03 +0000)
commit972afffded3957c3891116a9a81ac9b049e28ad4
treec6809cff47196d8ba9a1317f56856201b856dd23
parentfec1e7c8e10e1c592642fac0c497cd57bd3f003c
parent06b7175650c0c2570a66126b64696ed177e0d1fa
Merge #4222

4222: Introduce C/C++ for Visual Studio Code extension as an alternative debug engine for Debug Code lens. r=matklad a=vsrs

At the moment Debug Code Lens can use only one debug engine: lldb via [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) extension.

This PR adds support of the debug engine from the [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) extension, as well as the configuration option. If both extensions are installed, `CodeLLDB` will be used by default.

Another new option `rust-analyzer.debug.sourceFileMap` allows, for example, to step into Rust std library during debugging. Works only with `MS C++ tools`.

On Windows:
```json
"rust-analyzer.debug.sourceFileMap": {
    "/rustc/4fb7144ed159f94491249e86d5bbd033b5d60550": "${env:USERPROFILE}/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust"
}
```
On Linux:
```json
"rust-analyzer.debug.sourceFileMap": {
    "/rustc/4fb7144ed159f94491249e86d5bbd033b5d60550": "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust"
}
```

Co-authored-by: vsrs <vit@conrlab.com>
editors/code/package.json