CLI tool for debugging with natural language via LLM
Top 40.4% on sourcepulse
ChatGDB integrates ChatGPT into GDB and LLDB debuggers, enabling users to interact with the debugger using natural language. This tool aims to accelerate debugging workflows for developers working with compiled languages by translating natural language requests into debugger commands and providing explanations for executed commands or general queries.
How It Works
ChatGDB acts as a bridge between the user's natural language input and the GDB/LLDB command-line interface. It leverages OpenAI's API to process user queries, generate appropriate debugger commands, and optionally provide explanations. The integration is achieved by sourcing Python scripts into the respective debugger's initialization files (.gdbinit
or .lldbinit
), allowing commands like chat <query>
and explain [query]
to be executed directly within the debugging session.
Quick Start & Requirements
pip3 install chatgdb
chatgdb -k <API KEY>
, chatgdb -m <MODEL>
(gpt-3.5-turbo or gpt-4), chatgdb -u <api-url>
echo "source $(python -m site --user-site)/chatgdb/gdb.py" > $HOME/.gdbinit
echo "command script import $(python -m site --user-site)/chatgdb/lldb.py" > $HOME/.lldbinit
Highlighted Details
Maintenance & Community
pip3 install chatgdb --upgrade
.Licensing & Compatibility
Limitations & Caveats
7 months ago
1 day