ChatDBG: Augmenting Debugging with Large Language Models
Not on the map. Why?
Abstract (arXiv)
Debugging is a critical but challenging task for programmers. This paper proposes ChatDBG, an AI-powered debugging assistant. ChatDBG integrates large language models (LLMs) to significantly enhance the capabilities and user-friendliness of conventional debuggers. ChatDBG lets programmers engage in a collaborative dialogue with the debugger, allowing them to pose complex questions about program state, perform root cause analysis for crashes or assertion failures, and explore open-ended queries like "why is x null?". To handle these queries, ChatDBG grants the LLM autonomy to "take the wheel": it can act as an independent agent capable of querying and controlling the debugger to navigate through stacks and inspect program state. It then reports its findings and yields back control to the programmer. By leveraging the real-world knowledge embedded in LLMs, ChatDBG can diagnose issues identifiable only through the use of domain-specific reasoning. Our ChatDBG prototype integrates with standard debuggers including LLDB and GDB for native code and Pdb for Python. Our evaluation across a diverse set of code, including C/C++ code with known bugs and a suite of Python code including standalone scripts and Jupyter notebooks, demonstrates that ChatDBG can successfully analyze root causes, explain bugs, and generate accurate fixes for a wide range of real-world errors. For the Python programs, a single query led to an actionable bug fix 67% of the time; one additional follow-up query increased the success rate to 85%. ChatDBG has seen rapid uptake; it has already been downloaded more than 75,000 times.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 8 of its 48 references that are in the map. First posted on arXiv 25 Mar 2024.
Builds on
8 of 48 references.
References · 8
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesiscited by 350
- 2023Large Language Models for Test-Free Fault Localizationcited by 67
- 2023A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localizationcited by 50
- 2023Explainable Automated Debugging via Large Language Model-driven Scientific Debuggingcited by 40
- 2021Fault Localization with Code Coverage Representation Learningcited by 16
- 2017Engineering Record And Replay For Deployability: Extended Technical Reportcited by 5
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 5.
9 papers.
- 2026SkillReducer: Optimizing LLM Agent Skills for Token Efficiencycited by 29
- 2025debug-gym: A Text-Based Environment for Interactive Debuggingcited by 19
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2024SuperCoder2.0: Technical Report on Exploring the feasibility of LLMs as Autonomous Programmercited by 3
- 2025Adversarial Reasoning for Repair Based on Inferred Program Intentcited by 2
- 2026Debug2Fix: Can Interactive Debugging Help Coding Agents Fix More Bugs?cited by 1
- 2026Empowering Autonomous Debugging Agents with Efficient Dynamic Analysiscited by 1
- 2026JupOtter: Cell-Level Bug Detection in Jupyter Notebookscited by 0
- 2026AtumAI: A Principled Framework for Agentic Generation of Datacenter Control-Plane Policiescited by 0
- 2026AtumAI: A Principled Framework for Agentic Generation of Datacenter Control-Plane Policies3 Aug 2026
- 2026JupOtter: Cell-Level Bug Detection in Jupyter Notebooks22 Jun 2026
- 2026Empowering Autonomous Debugging Agents with Efficient Dynamic Analysis27 Apr 2026
- 2026SkillReducer: Optimizing LLM Agent Skills for Token Efficiency31 Mar 2026
- 2026Debug2Fix: Can Interactive Debugging Help Coding Agents Fix More Bugs?20 Feb 2026
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
- 2025Adversarial Reasoning for Repair Based on Inferred Program Intent19 May 2025
- 2025debug-gym: A Text-Based Environment for Interactive Debugging27 Mar 2025
- 2024SuperCoder2.0: Technical Report on Exploring the feasibility of LLMs as Autonomous Programmer17 Sep 2024