Browse Source

debugging in dev container can now step into Rust Std code (#219)

pull/222/head
Jason Williams 5 years ago committed by GitHub
parent
commit
e38ac20d19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      .devcontainer/devcontainer.json

16
.devcontainer/devcontainer.json

@ -25,16 +25,22 @@
// This will ignore your local shell user setting for Linux since shells like zsh are typically
// not in base container images. You can also update this to an specific shell to ensure VS Code
// uses the right one for terminals and tasks. For example, /bin/bash (or /bin/ash for Alpine).
"terminal.integrated.shell.linux": null
"terminal.integrated.shell.linux": null,
// https://github.com/vadimcn/vscode-lldb/issues/204
// https://users.rust-lang.org/t/solved-how-to-step-into-std-source-code-when-debugging-in-vs-code/25319/5
"lldb.executable": "rust-lldb",
"lldb.launch.sourceLanguages": ["rust"],
// CodeLLDB sourceMap supports Globs!
// https://github.com/vadimcn/vscode-lldb/blob/master/CHANGELOG.md#070
"lldb.launch.sourceMap": {
"/rustc/*/": "/usr/local/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust"
}
},
// Uncomment the next line if you want to publish any ports.
// "appPort": [],
// Uncomment the next line to run commands after the container is created - for example installing git.
// "postCreateCommand": "apt-get update && apt-get install -y git",
// Add the IDs of extensions you want installed when the container is created in the array below.
"extensions": [
"vadimcn.vscode-lldb",
"rust-lang.rust"
],
"extensions": ["vadimcn.vscode-lldb", "rust-lang.rust"],
"postCreateCommand": "rustup toolchain install stable && rustup component add rls rust-src rust-analysis --toolchain stable"
}
Loading…
Cancel
Save