Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Building split debug info files on Windows with the GNU ABI
Building split debug info files on Windows with the GNU ABI
โ rust ๐ 2025-05-14 ๐ค surdeus ๐๏ธ 2Hello, I'm trying to build split debug info files on Windows, using the Nightly compiler. On MSVC (nightly-x86_64-pc-windows-msvc
) the pdb file gets generated and everything is good. However on GNU (nightly-x86_64-pc-windows-gnu
), even with [profile.dev] split-debuginfo = "packed"
set the DWARF file doesn't get generated in the target/debug directory.
I'm trying to use GNU instead of MSVC because I'm using CodeLLDB on VSCode and it says in its docs that GNU is preferred: Windows ยท vadimcn/codelldb Wiki ยท GitHub (on MSVC I'm having some issues debugging such as the debugger timing out). And I need the split debug info files because the LLDB is complaining that they're missing:
(in the debug console)
warning: (x86_64) [executable].exe unable to locate separate debug file (dwo, dwp). Debugging will be degraded.
After running cargo build --verbose
I've noticed that cargo
invokes rustc
without setting the split-debuginfo
flag. And when I'm passing setting the RUSTFLAGS manually to set RUSTFLAGS=-C split-debuginfo=packed
it says error: `-Csplit-debuginfo=packed` is unstable on this platform
. Is there a way to enable this unstable option? Or maybe just a better way to debug Rust programs on Windows?
1 post - 1 participant
๐ท๏ธ rust_feed