Last active
May 5, 2022 02:50
-
-
Save leolovenet/4b04f9d1e43358832a312490e620b8a4 to your computer and use it in GitHub Desktop.
Make vscode-lldb automatically support Rust std lib sourcemaps, add it directly to VSCode's settings.json, https://github.com/vadimcn/vscode-lldb/issues/204#issuecomment-1113981923
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"lldb.launch.preRunCommands": [ | |
"script lldb.debugger.HandleCommand('settings set target.source-map /rustc/{} \"{}/lib/rustlib/src/rust\"'.format(os.popen('rustc --version --verbose').read().split('commit-hash: ')[1].split('\\n')[0].strip(), os.popen('rustc --print sysroot').readline().strip()))" | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使 VSCode 的 vscode-lldb 扩展,调试时自动打开 Rust Standard Library 的源码