LLDB-MCP logo

LLDB-MCP

by stass

LLDB-MCP integrates the LLDB debugger with Claude's Model Context Protocol (MCP), enabling AI-assisted debugging workflows. It allows Claude to start, control, and interact with LLDB debugging sessions directly.

View on GitHub

Last updated: N/A

What is LLDB-MCP?

LLDB-MCP is a tool that allows Claude to control and interact with LLDB debugging sessions. It provides a set of commands for managing sessions, loading programs, setting breakpoints, controlling execution, and inspecting memory.

How to use LLDB-MCP?

After installing the tool and configuring Claude with the provided MCP configuration, you can interact with LLDB through Claude using natural language commands. You can start sessions, load programs, set breakpoints, run the program, inspect variables, and control execution.

Key features of LLDB-MCP

  • Create and manage multiple LLDB debugging sessions

  • Load executables and attach to running processes

  • Load core dump files for post-mortem analysis

  • Execute arbitrary LLDB commands

  • Fine-grained control over program execution

  • Memory examination and disassembly

  • Thread and stack frame inspection

Use cases of LLDB-MCP

  • AI-assisted debugging

  • Automated debugging workflows

  • Debugging with natural language commands

  • Post-mortem analysis of core dumps

FAQ from LLDB-MCP

How do I start a new LLDB session?

Use the command lldb_start.

How do I load a program into LLDB?

Use the command lldb_load.

How do I set a breakpoint?

Use the command lldb_set_breakpoint.

How do I run the program?

Use the command lldb_run.

How do I examine memory?

Use the command lldb_examine.