Unable to resolve breakpoints when debugging a unit test in a lib target #59907
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
O-macos
Operating system: macOS
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Environment
Problem description
On macOS, when you build tests (with
cargo test --no-run
) in a lib target, and right after that run LLDB on the test binary, the debugger unable to resolve breakpoints.Steps to reproduce:
Example project:
Cargo.toml
:src/main.rs
:src/lib.rs
:Test script (bash):
test.sh
:P.S.
I also noticed that the
*.dSYM
file is not listed in thefilenames
field:For example, build unit tests in bin target:
The text was updated successfully, but these errors were encountered: