format!() generates code without line number debug info #20292
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Compile the following with
-g
flag, then try stepping line-by-line in gdb:After each
printlt!()
statement the execution point jumps to the first line of the function.Examination of LLVM IR shows that much of the
fmt::Arguments
construction code has no line debug metadata attached to it (or at least that's what I think that code does).The text was updated successfully, but these errors were encountered: