Arrow Research search
Back to AAMAS

AAMAS 2026

DebugTA: An LLM-Based Agent for Simplifying Debugging and Teaching in Programming Education

Conference Paper Extended Abstracts Autonomous Agents and Multiagent Systems

Abstract

In programming education, Debugging and Teaching (DT) task is a common scenario which requires generating modification suggestions from erroneous code, error messages, reference solutions, and problem descriptions. Existing approaches struggle with complex multi-source reasoning and underutilize available reference code, limiting the effectiveness of large language models (LLMs) in DT tasks. 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 pedagogical and debugging principles, DebugTA decomposes complexDTtasksintostructuredLLM–toolinteractionsthatreduce reasoning complexity. By aligning reference code with erroneous code, DebugTA enables the LLM to focus on logical errors and improves suggestion accuracy. To rigorously assess the quality of modification suggestions, we introduce a student simulator-teacher interactionparadigm. Experimentalresultsonthreereal-worldcode datasets demonstrate that DebugTA consistently improves teaching effectiveness while significantly reducing computational costs.

Authors

Keywords

  • Debugging and Teaching
  • LLM Agents
  • Programming Education

Context

Venue
International Conference on Autonomous Agents and Multiagent Systems
Archive span
2002-2026
Indexed papers
8043
Paper id
129523680395782104
v2026.09.13