Always inline functions don't have correct source line information under the VS debugger #108972
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
C-bug
Category: This is a bug.
O-windows-msvc
Toolchain: MSVC, Operating system: Windows
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: being able to debug
g
under Visual Studio.Instead, this happened: the source line information for
g
is attributed to theg
call in main, not to the lines ing
.Meta
rustc --version --verbose
:This also means that it loses the debug info for variables, making the function not debuggable at all.
Update: It also doesn't work if I set
-Zinline-mir=no
under nightly.The text was updated successfully, but these errors were encountered: