lldb

Guide LLDB debugging for C, C++, Swift, and Objective-C with GDB command mapping.

159|20|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill lldb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lldb
Source: https://github.com/mohitmishra786/low-level-dev-skills/tree/main/skills/debuggers/lldb
Command: npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill lldb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers efficiently debug C, C++, Swift, and Objective-C programs using the LLDB debugger, bridging the gap for those familiar with GDB and providing guidance for advanced LLDB features.

Core Features & Use Cases

  • GDB to LLDB Command Mapping: Quickly find equivalent LLDB commands for common GDB operations.
  • Breakpoints and Watchpoints: Set, manage, and configure breakpoints and watchpoints effectively.
  • State Inspection: Examine variables, registers, and memory with ease.
  • Platform Specifics: Includes guidance for macOS and Apple platforms, including Objective-C debugging.
  • IDE Integration: Provides setup for using LLDB within VS Code.
  • Python Scripting: Introduces LLDB's Python API for custom debugging extensions.
  • Use Case: Debug a complex C++ segmentation fault on macOS by mapping your GDB knowledge to LLDB commands and inspecting thread states.

Quick Start

Use the lldb skill to set a breakpoint at the 'main' function in your program.

Frequently Asked Questions about lldb

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I map GDB commands to LLDB for debugging C++ on macOS?

Mapping GDB commands to LLDB involves using provided command references to find equivalent LLDB operations for managing breakpoints and inspecting program state in C++ on macOS.

Can I use LLDB to debug Swift and Objective-C programs on Apple platforms?

Yes, you can use LLDB to debug Swift and Objective-C programs on Apple platforms. LLDB provides platform-specific guidance and state inspection capabilities tailored for macOS development environments.

How do I set up LLDB integration with VS Code?

Setting up LLDB integration with VS Code involves configuring the debugger within the IDE to enable breakpoint management and state inspection directly through the editor interface for C, C++, and Swift programs.

What is the best way to inspect variables and memory using LLDB?

The best way to inspect variables and memory using LLDB is by utilizing its state inspection commands to examine variables, registers, and memory addresses efficiently during C, C++, or Swift debugging sessions.

Does LLDB support Python scripting for custom debugging extensions?

Yes, LLDB supports Python scripting for custom debugging extensions. It exposes a Python API that allows you to write custom scripts for advanced debugging customization and automation across supported languages.