Debugging
This page is the starting point for everything that relates to debugging. The intend is to collect everything we need to remember or need to know in a single place to make sure that support for debugging processes as well as kernels becomes well-supported and bug-free in the future.
Main Topics
External Resources
BSDCan 2008: Introduction to Debugging the FreeBSD Kernel by JohnBaldwin
Kernel debugging class (Slides & Tutorial) by Greg Lehey (2006)
FOSDEM 2010: Debugging the FreeBSD kernel for dummies by ShteryanaShopova
Profiling and Debugging the FreeBSD Kernel (2009) by Ray Kinsella (IntelĀ® Software)
Alternative Debuggers
LLDB is a debugger based on LLVM and CLANG under a "BSD-style" license.
Pathscale's PathDB was ported to FreeBSD and it's available on github
The Solaris Modular Debugger MDB would be an interesting port due to its Dtrace support.
Debugging Subsystems
Many Subsystems in FreeBSD have their own debugging mechanisms and can provide additional information to help users and developers track down the source of issues. These pages include information for developers and tools and commands users can use to generate additional debug output to help developers analyze issues.