You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
settings set target.source-map /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/ /Users/user/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust
CLion will automatically apply .lldbinit before each debug session.
The text was updated successfully, but these errors were encountered:
I cannot reproduce this issue anymore on CLion 2021.1. Probably, it was fixed by some of the recent CLion's LLDB updates. So now stepping into stdlib code or setting breakpoints in stdlib sources should work fine with LLDB, on both macOS and Linux.
@RiseAndCry That's interesting. I've tried to debug a very simple dylib crate, and stepping into stdlib worked as expected. Could you please open a separate issue via Help | Create New Issue dialog right from the IDE to provide the information about your environment? Also, it would be helpful if you provide the output of (lldb) image list command executed via LLDB console on any breakpoint. I suppose it should contain a path to stdlib, like this:
Environment
Problem description
CLion shows disassembly code instead of showing stdlib source code while debugging Rust project with LLDB.
The corresponding issue in YT: https://youtrack.jetbrains.com/issue/CPP-18915
Hotfix
Put the following line in your
~/.lldbinit
:where:
$ rustup show home
$ rustc -Vv | grep commit-hash | cut -d' ' -f 2
$ rustup toolchain list | grep '(default)' | cut -d' ' -f 1
Example:
CLion will automatically apply
.lldbinit
before each debug session.The text was updated successfully, but these errors were encountered: