Skip to content

Windows

vadimcn edited this page May 14, 2023 · 9 revisions

Debug information formats

On Windows, there are two debug information formats in common use: the Microsoft PDB ("msvc" ABI), used primarily by Microsoft toolchains, and DWARF ("gnu" ABI), originating from Unix toolchains (GCC, LLVM, etc).

LLDB supports both of these formats, however, being a relatively recent addition, PDB support is still somewhat buggy and you may experience problems with it, up to and including debugger crashes. For this reason, when there is a choice, using "-gnu" ABI compilation targets is recommended (e.g. "x86_64-pc-windows-gnu").

Rust users should also be aware that until version 1.55, PDB support in rustc was lacking (most notably around features related to enums). If you must use the "msvc" ABI, be sure you have a recent version of the compiler.

WSL

CodeLLDB works in WSL2 instances, but not in WSL1: the latter does not implement certain syscalls that LLDB uses.

Clone this wiki locally