Background: In Rust, you usually have several source files called mod.rs For instance:
app_name src main.rs foo mod.rs bar mod.rs
Problem: I cannot find a way to distinguish one mod.rs from another when setting the LLDB breakpoint:
$ cargo build $ rust-lldb target/debug/app_name (lldb) breakpoint set -f mod.rs -l 10 Breakpoint 1: 2 locations. (lldb) breakpoint set -f foo/mod.rs -l 10 Breakpoint 2: no locations (pending). WARNING: Unable to resolve breakpoint to any actual locations. (lldb) breakpoint set -f src/foo/mod.rs -l 10 Breakpoint 3: no locations (pending). WARNING: Unable to resolve breakpoint to any actual locations.
This question is most often found with mod.rs More generally, this occurs at any time when multiple source files have the same name.
Question Is there a way to set a breakpoint on line 10 of foo/mod.rs but not on line 10 bar/mod.rs ?
source share