What's new in LLDB?

Asked on 2025-10-08

1 search

At WWDC 2024, several new features and improvements were introduced for LLDB, the debugger that ships with Xcode. Here are some highlights:

  1. Debugging Techniques: The session "Run, Break, Inspect: Explore effective debugging in LLDB" covered various debugging techniques, including using crash logs, breakpoints, and the p command for inspecting program state. It also introduced a new feature from Swift 6 that allows customization of how data types appear in the debugger. Run, Break, Inspect: Explore effective debugging in LLDB

  2. Crash Logs: LLDB can consume crash logs and present them in a form that resembles a debugging session, allowing developers to perform an initial investigation into how a crash happened. Run, Break, Inspect: Explore effective debugging in LLDB

  3. Breakpoint Actions: The session also discussed how to use breakpoint actions to automate tasks when breakpoints are hit, which can help streamline the debugging process. Run, Break, Inspect: Explore effective debugging in LLDB

  4. Swift Error Breakpoints: A new type of breakpoint was introduced that stops the application as soon as a Swift error is thrown, aiding in debugging Swift code. Run, Break, Inspect: Explore effective debugging in LLDB

  5. Command Line Interface: LLDB's rich command line interface was highlighted, showing how it can be used to set breakpoints and perform other debugging tasks. Run, Break, Inspect: Explore effective debugging in LLDB

These updates aim to make debugging more efficient and provide developers with powerful tools to diagnose and fix issues in their code.

What's new in LLDB? | Ask WWDC