DebugTA: An LLM-Based Agent for Simplifying Debugging and Teaching in Programming Education
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
In programming education, Debugging and Teaching (DT) task is a common scenario where students receive assistance in correcting their erroneous code. The task involves multiple inputs, including erroneous code, error messages, reference solutions, and the question description, with the goal of generating modification suggestions to the erroneous code. However, two key challenges hinder the effectiveness of existing approaches. Firstly, the complexity and heterogeneity of inputs inherent in DT tasks significantly elevate the reasoning challenges faced by LLMs. Second, existing approaches often fail to fully leverage the availability of standard code in DT tasks, forcing models to rely solely on complex multi-step reasoning, which limits the potential of LLMs in addressing DT tasks effectively. To address these challenges, we propose DebugTA, a novel LLM-based debugging and teaching agent with specialized tools for standard code retrieval, variable substitution to align reference code, and an external compiler for real-time code analysis. Guided by explicit pedagogical and debugging principles, DebugTA acts as an agent that decomposes a complex task into sequential LLM interactions, each utilizing distinct tools for specific subtasks, thereby simplifying the logical reasoning at each step and reducing overall reasoning complexity. Furthermore, DebugTA utilizes tool calls to align the standard code with the erroneous code as much as possible, allowing the LLM to focus on logic errors within the erroneous code and improving the accuracy of the generated suggestions. To rigorously assess the quality of modification suggestions, we introduce a student simulator-teacher interaction paradigm. Experimental results on three real-world code datasets demonstrate that DebugTA consistently improves teaching effectiveness while significantly reducing computational costs.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 27 of its 51 references that are in the map. First posted on arXiv 13 Oct 2025.
Builds on
27 of 51 references.
Closest ancestors · 3
Same direction, newest first
- 2024RGD: Multi-LLM Based Agent Debugger via Refinement and Generation Guidance2 Oct
- 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesis9 Aug
- 2024UniDebugger: Hierarchical Multi-Agent Framework for Unified Software Debugging26 Apr
Other references · 24
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
- 2024Large Language Models for Education: A Survey and Outlookcited by 185
- 2024Simulating Classroom Education with LLM-Empowered Agentscited by 125
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2024CodeAid: Evaluating a Classroom Deployment of an LLM-based Programming Assistant that Balances Student and Educator Needscited by 81
- 2023Multilingual Large Language Models Are Not (Yet) Code-Switcherscited by 65
- 2024Generative Students: Using LLM-Simulated Student Profiles to Support Question Item Evaluationcited by 56
- 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedbackcited by 45
- 2024EduAgent: Generative Student Agents in Learningcited by 41
12 more
- 2023Explainable Automated Debugging via Large Language Model-driven Scientific Debuggingcited by 40
- 2024LeDex: Training LLMs to Better Self-Debug and Explain Codecited by 39
- 2023Teach AI How to Code: Using Large Language Models as Teachable Agents for Programming Educationcited by 38
- 2019Exploiting Cognitive Structure for Adaptive Learningcited by 36
- 2024MathVC: An LLM-Simulated Multi-Character Virtual Classroom for Mathematics Educationcited by 35
- 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 28
- 2024Evaluating the Effectiveness of LLMs in Introductory Computer Science Education: A Semester-Long Field Studycited by 26
- 2024RethinkMCTS: Refining Erroneous Thoughts in Monte Carlo Tree Search for Code Generationcited by 25
- 2025Embracing Imperfection: Simulating Students with Diverse Cognitive Levels Using LLM-based Agentscited by 19
- 2023CodeApex: A Bilingual Programming Evaluation Benchmark for Large Language Modelscited by 15
- 2024CREF: An LLM-based Conversational Software Repair Framework for Programming Tutorscited by 14
- 2024Better Debugging: Combining Static Analysis and LLMs for Explainable Crashing Fault Localizationcited by 5
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2023How to Teach Programming in the AI Era? Using LLMs as a Teachable Agent for Debugging
- 2026ProDebug: An Automated Debugging System for Prolog ↗
- 2025debug-gym: A Text-Based Environment for Interactive Debugging
- 2025textttReMind: Understanding Deductive Code Reasoning in LLMs
- 2026Enhancing Debugging Skills with AI-Powered Assistance: A Real-Time Tool for Debugging Support
- 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
- 2025Reasoning Trajectories for Socratic Debugging of Student Code: From Misconceptions to Contradictions and Updated Beliefs
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models