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 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.

Any update on this yet?

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.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.