Rust-lldb line numbers


When debugging Rust programs using LLDB (rust-lldb, specifically) line numbers are often very off. I’m not sure if this is because of macro expansion or something else, but it currently makes it almost unusable.


I think we would appreciate bug reports with specific problematic cases.


It shows up for any code with macros in it, as far as I can tell. :slight_smile:


It seems just trying to debug servo and webrender makes this problem happen. I’m on OS X El Capitan with a custom build llvm from brew. For example, trying to set a breakpoint of, I’m getting the breakpoint hit but it’s actually line 1177. This makes it really hard to debug also as breakpoints I’m expecting to get hit aren’t being hit.


Any update on this yet?


There are a few open bugs about macro line numbers, like or It would be good if you could see if your symptoms fit one of the existing bugs; and if not, file a new bug with a reproducer.