Skip to content

Windows

vadimcn edited this page Apr 12, 2021 · 9 revisions

On Windows, there are two debug info formats in use: Microsoft PDB and DWARF. The former is primarily used by Microsoft toolchains, the latter - by toolchains originating in the Unix world: GCC, LLVM and others. (Though, these days the LLVM framework also supports emitting PDB debug info, and so do many LLVM-based compilers such as clang and rustc.)

LLDB does support PDB format as well, however, being a relatively recent addition, this code is still buggy, so you may experience problems with it, including debugger crashing.

Rust users should also be aware that some of the language features cannot be encoded in PDB (most notably Rust enums).

For these reasons, if you want a smooth debugging experience with CodeLLDB on Windows, I recommend sticking with *-pc-windows-gnu build targets, for which compilers emit DWARF debug info.

Clone this wiki locally