Rust-lldb line numbers


#1

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.


#2

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


#3

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


#4

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 frame.rs:794, 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.


#5

Any update on this yet?


#6

There are a few open bugs about macro line numbers, like https://github.com/rust-lang/rust/issues/9232 or https://github.com/rust-lang/rust/issues/18285. 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.