Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-step
Not on the map. Why?
Cited by 43 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Large language models (LLMs) are leading significant progress in code generation. Beyond one-pass code generation, recent works further integrate unit tests and program verifiers into LLMs to iteratively refine the generated programs. However, these works consider the generated programs as an indivisible entity, which falls short for LLMs in debugging the programs, especially when the programs contain complex logic flows and data operations. In contrast, when human developers debug programs, they typically set breakpoints and selectively examine runtime execution information. The execution flow and the intermediate variables play a crucial role in the debugging process, yet they are underutilized in the existing literature on code generation. In this study, we introduce Large Language Model Debugger (LDB), a novel debugging framework that enables LLMs to refine their generated programs with the runtime execution information. Specifically, LDB segments the programs into basic blocks and tracks the values of intermediate variables after each block throughout the runtime execution. This allows LLMs to concentrate on simpler code units within the overall execution flow, verify their correctness against the task description block by block, and efficiently pinpoint any potential errors. Experiments demonstrate that LDB consistently enhances the baseline performance by up to 9.8% across the HumanEval, MBPP, and TransCoder benchmarks, archiving new state-of-the-art performance in code debugging for various LLM selections.
Key facts. Cited by 123 papers in the map (data through 7 Oct 2026). Builds on 37 of its 66 references that are in the map. First posted on arXiv 25 Feb 2024.
Builds on
37 of 66 references.
References · 37
- 2023GPT-4 Technical Reportcited by 18,132
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Let's Verify Step by Stepcited by 3,598
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 965
- 2023Teaching Large Language Models to Self-Debugcited by 963
25 more
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2023StarCoder: may the source be with you!cited by 790
- 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 551
- 2023Fine-Grained Human Feedback Gives Better Rewards for Language Model Trainingcited by 399
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
- 2022Binding Language Models in Symbolic Languagescited by 224
- 2024Chain-of-Table: Evolving Tables in the Reasoning Chain for Table Understandingcited by 185
- 2023Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verificationcited by 166
- 2022Natural Language to Code Translation with Executioncited by 122
- 2023InferFix: End-to-End Program Repair with LLMscited by 113
- 2022Coder Reviewer Reranking for Code Generationcited by 83
- 2023Improving Code Generation by Training with Natural Language Feedbackcited by 75
- 2023CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modulescited by 58
- 2017Code Completion with Neural Attention and Pointer Networkscited by 49
- 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 49
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistencycited by 46
- 2023ALGO: Synthesizing Algorithmic Programs with LLM-Generated Oracle Verifierscited by 41
- 2022Learning Math Reasoning from Self-Sampled Correct and Partially-Correct Solutionscited by 38
- 2024CodePori: Large-Scale System for Autonomous Software Development Using Multi-Agent Technologycited by 21
- 2023GrACE: Generation using Associated Code Editscited by 16
- 2023Explain-then-Translate: An Analysis on Improving Program Translation with Self-generated Explanationscited by 12
- 2022Automated Feedback Generation for Competition-Level Codecited by 7
- 2023A Survey of Prevent and Detect Access Control Vulnerabilitiescited by 1
Built on by
Citing papers per year: 2024: 26; 2025: 62; 2026: 35.
123 papers.
Sort:
By area:
- 2024AFlow: Automating Agentic Workflow Generationcited by 395
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 146
- 2024SAFREE: Training-Free and Adaptive Guard for Safe Text-to-Image And Video Generationcited by 125
- 2025KodCode: A Diverse, Challenging, and Verifiable Synthetic Dataset for Codingcited by 115
- 2024A Survey on Self-Evolution of Large Language Modelscited by 86
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
- 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimizationcited by 84
- 2025SEAL: Steerable Reasoning Calibration of Large Language Models for Freecited by 65
- 2025Assemble Your Crew: Automatic Multi-agent Communication Topology Design via Autoregressive Graph Generationcited by 57
- 2024Hidden in Plain Text: Emergence & Mitigation of Steganographic Collusion in LLMscited by 52
- 2024The Limits of Inference Scaling Through Resamplingcited by 51
- 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
38 more
- 2024AgileCoder: Dynamic Collaborative Agents for Software Development based on Agile Methodologycited by 45
- 2025Teaching Language Models to Critique via Reinforcement Learningcited by 38
- 2025Web-Bench: A LLM Code Benchmark Based on Web Standards and Frameworkscited by 36
- 2024CRUXEval-X: A Benchmark for Multilingual Code Reasoning, Understanding and Executioncited by 31
- 2025CODESIM: Multi-Agent Code Generation and Problem Solving through Simulation-Driven Planning and Debuggingcited by 31
- 2025Internet of Agents: Fundamentals, Applications, and Challengescited by 31
- 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinementcited by 21
- 2025Weak-for-Strong: Training Weak Meta-Agent to Harness Strong Executorscited by 20
- 2024BudgetMLAgent: A Cost-Effective LLM Multi-Agent system for Automating Machine Learning Taskscited by 19
- 2025On the Effect of Sampling Diversity in Scaling LLM Inferencecited by 18
- 2026In Line with Context: Repository-Level Code Generation via Context Inliningcited by 18
- 2026A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applicationscited by 17
- 2025MAPRO: Recasting Multi-Agent Prompt Optimization as Maximum a Posteriori Inferencecited by 15
- 2025CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generationcited by 14
- 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimizationcited by 14
- 2025Xolver: Multi-Agent Reasoning with Holistic Experience Learning Just Like an Olympiad Teamcited by 13
- 2025VeriDebug: A Unified LLM for Verilog Debugging via Contrastive Embedding and Guided Correctioncited by 12
- 2025CipherBank: Exploring the Boundary of LLM Reasoning Capabilities through Cryptography Challengescited by 11
- 2025HALO: Hierarchical Autonomous Logic-Oriented Orchestration for Multi-Agent LLM Systemscited by 11
- 2026CodeTracer: Towards Traceable Agent Statescited by 11
- 2025LLM4EFFI: Leveraging Large Language Models to Enhance Code Efficiency and Correctnesscited by 10
- 2025Enhancing LLM-Based Code Generation with Complexity Metrics: A Feedback-Driven Approachcited by 10
- 2025Execution Guided Line-by-Line Code Generationcited by 10
- 2024Measuring the Influence of Incorrect Code on Test Generationcited by 9
- 2024Aligning CodeLLMs with Direct Preference Optimizationcited by 9
- 2024Defining and Evaluating Physical Safety for Large Language Modelscited by 9
- 2025NG-Router: Graph-Supervised Multi-Agent Collaboration for Nutrition Question Answeringcited by 9
- 2025RefineCoder: Iterative Improving of Large Language Models via Adaptive Critique Refinement for Code Generationcited by 8
- 2025DatawiseAgent: A Notebook-Centric LLM Agent Framework for Adaptive and Robust Data Science Automationcited by 8
- 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latencycited by 8
- 2026AgentStepper: Interactive Debugging of Software Development Agentscited by 8
- 2024Automating Thought of Search: A Journey Towards Soundness and Completenesscited by 7
- 2025Successor-Generator Planning with LLM-generated Heuristicscited by 7
- 2025Large Language Model Guided Self-Debugging Code Generationcited by 7
- 2026REFLECT: Intervention-Supported Error Attribution for Silent Failures in LLM Agent Tracescited by 7
- 2024On the Limitations of Embedding Based Methods for Measuring Functional Correctness for Code Generationcited by 6
- 2024Experimenting with Multi-Agent Software Development: Towards a Unified Platformcited by 6
- 2024SurgBox: Agent-Driven Operating Room Sandbox with Surgery Copilotcited by 6
50 most cited of 123 All 123 (JSON)
- 2026Trajectory-Aware Benchmark Subset Selection for Cost-Efficient Software Engineering Agent Regression Testing21 Sep 2026
- 2026Confidence-Gated Transductive Test Generation for Code Reranking11 Sep 2026
- 2026MARS: Multi-Specialist LLM Relay System for Competitive Programming24 Aug 2026
- 2026Evaluating Agentic Code Repair Capabilities in Distributed Systems14 Aug 2026
- 2026Diagnosis Before Recovery: Turning Agent Failures into Selective Self-Correction12 Aug 2026
- 2026Do Influence Tactics Matter? Investigating Prompt Framing Effects in LLM Code Generation11 Aug 2026
- 2026CodeRescue: Budget-Calibrated Recovery Routing for Coding Agents21 Jul 2026
- 2026Multi-Perspective Agentic Program Repair via Code Property Graphs and Temporal Execution Graphs14 Jul 2026
- 2026Tool-Making and Self-Evolving LLM Agents in Low-Latency Systems9 Jul 2026
- 2026Falsification, Not Exposure: An Internally Preregistered Placebo-Controlled Decomposition of Self-Repair Feedback in Frozen Small Code Models30 Jun 2026
- 2026Unlocking LLM Code Correction with Iterative Feedback Loops16 Jun 2026
- 2026REFLEX: Reflective Evolution from LLM Experience15 Jun 2026
38 more
- 2026REFLECT: Intervention-Supported Error Attribution for Silent Failures in LLM Agent Traces8 Jun 2026
- 2026ATOM: Instantiating Budget-Controllable Multi-Agent Collaboration via Nucleus-Electron Hierarchy25 May 2026
- 2026StepCodeReasoner: Aligning Code Reasoning with Stepwise Execution Traces via Reinforcement Learning12 May 2026
- 2026AgentSlimming: Towards Efficient and Cost-Aware Multi-Agent Systems9 May 2026
- 2026A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applications8 May 2026
- 2026PaT: Planning-after-Trial for Efficient Test-Time Code Generation8 May 2026
- 2026SolidCoder: Bridging the Mental-Reality Gap in LLM Code Generation through Concrete Execution20 Apr 2026
- 2026Precise Debugging Benchmark: Is Your Model Debugging or Regenerating?19 Apr 2026
- 2026Memory Transfer Learning: How Memories are Transferred Across Domains in Coding Agents15 Apr 2026
- 2026CodeTracer: Towards Traceable Agent States13 Apr 2026
- 2026Three Roles, One Model: Role Orchestration at Inference Time to Close the Performance Gap Between Small and Large Agents13 Apr 2026
- 2026Executing as You Generate: Hiding Execution Latency in LLM Code Interpreters1 Apr 2026
- 2026SEMAG: Self-Evolutionary Multi-Agent Code Generation16 Mar 2026
- 2026ProMAS: Proactive Error Forecasting for Multi-Agent Systems Using Markov Transition Dynamics12 Mar 2026
- 2026Debug2Fix: Can Interactive Debugging Help Coding Agents Fix More Bugs?20 Feb 2026
- 2026LogitsCoder: Towards Efficient Chain-of-Thought Path Search via Logits Preference Decoding for Code Generation15 Feb 2026
- 2026Perceptual Self-Reflection in Agentic Physics Simulation Code Generation12 Feb 2026
- 2026MATA: Multi-Agent Framework for Reliable and Flexible Table Question Answering10 Feb 2026
- 2026AgentStepper: Interactive Debugging of Software Development Agents6 Feb 2026
- 2026Codified Finite-state Machines for Role-playing5 Feb 2026
- 2026FunPRM: Function-as-Step Process Reward Model with Meta Reward Correction for Code Generation29 Jan 2026
- 2026Policy of Thoughts: Scaling Test-Time Training for LLM Reasoning via Online Policy Evolution28 Jan 2026
- 2026In Line with Context: Repository-Level Code Generation via Context Inlining1 Jan 2026
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Information31 Dec 2025
- 2025SkipKV: Selective Skipping of KV Generation and Storage for Efficient Inference with Large Reasoning Models8 Dec 2025
- 2025Towards autonomous normative multi-agent systems for Human-AI software engineering teams2 Dec 2025
- 2025Dual-Process Scaffold Reasoning for Enhancing LLM Code Debugging11 Nov 2025
- 2025Self-Correction Distillation for Structured Data Question Answering11 Nov 2025
- 2025Retriv at BLP-2025 Task 2: Test-Driven Feedback-Guided Framework for Bangla-to-Python Code Generation10 Nov 2025
- 2025Exploringand Unleashing the Power of Large Language Models in CI/CD Configuration Translation3 Nov 2025
- 2025Gistify! Codebase-Level Understanding via Runtime Execution30 Oct 2025
- 2025Automated Snippet-Alignment Data Augmentation for Code Translation16 Oct 2025
- 2025DebugTA: An LLM-Based Agent for Simplifying Debugging and Teaching in Programming Education13 Oct 2025
- 2025NG-Router: Graph-Supervised Multi-Agent Collaboration for Nutrition Question Answering10 Oct 2025
- 2025MEC3O: Multi-Expert Consensus for Code Time Complexity Prediction10 Oct 2025
- 2025MAPRO: Recasting Multi-Agent Prompt Optimization as Maximum a Posteriori Inference8 Oct 2025
- 2025TGPR: Tree-Guided Policy Refinement for Robust Self-Debugging of LLMs8 Oct 2025
- 2025Trade in Minutes! Rationality-Driven Agentic System for Quantitative Financial Trading6 Oct 2025
50 newest of 123 All 123 (JSON)
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
- 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimizationcited by 84
- 2025Assemble Your Crew: Automatic Multi-agent Communication Topology Design via Autoregressive Graph Generationcited by 57
- 2025Web-Bench: A LLM Code Benchmark Based on Web Standards and Frameworkscited by 36
- 2025CODESIM: Multi-Agent Code Generation and Problem Solving through Simulation-Driven Planning and Debuggingcited by 31
- 2025Internet of Agents: Fundamentals, Applications, and Challengescited by 31
- 2025Weak-for-Strong: Training Weak Meta-Agent to Harness Strong Executorscited by 20
- 2024BudgetMLAgent: A Cost-Effective LLM Multi-Agent system for Automating Machine Learning Taskscited by 19
- 2026A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applicationscited by 17
- 2025MAPRO: Recasting Multi-Agent Prompt Optimization as Maximum a Posteriori Inferencecited by 15
- 2025HALO: Hierarchical Autonomous Logic-Oriented Orchestration for Multi-Agent LLM Systemscited by 11
- 2025DatawiseAgent: A Notebook-Centric LLM Agent Framework for Adaptive and Robust Data Science Automationcited by 8
12 most cited of 38 All 38 (JSON)
- 2026Trajectory-Aware Benchmark Subset Selection for Cost-Efficient Software Engineering Agent Regression Testing21 Sep 2026
- 2026Evaluating Agentic Code Repair Capabilities in Distributed Systems14 Aug 2026
- 2026CodeRescue: Budget-Calibrated Recovery Routing for Coding Agents21 Jul 2026
- 2026Multi-Perspective Agentic Program Repair via Code Property Graphs and Temporal Execution Graphs14 Jul 2026
- 2026Tool-Making and Self-Evolving LLM Agents in Low-Latency Systems9 Jul 2026
- 2026REFLECT: Intervention-Supported Error Attribution for Silent Failures in LLM Agent Traces8 Jun 2026
- 2026ATOM: Instantiating Budget-Controllable Multi-Agent Collaboration via Nucleus-Electron Hierarchy25 May 2026
- 2026AgentSlimming: Towards Efficient and Cost-Aware Multi-Agent Systems9 May 2026
- 2026A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applications8 May 2026
- 2026Memory Transfer Learning: How Memories are Transferred Across Domains in Coding Agents15 Apr 2026
- 2026Three Roles, One Model: Role Orchestration at Inference Time to Close the Performance Gap Between Small and Large Agents13 Apr 2026
- 2026SEMAG: Self-Evolutionary Multi-Agent Code Generation16 Mar 2026
12 newest of 38 All 38 (JSON)
- 2024AFlow: Automating Agentic Workflow Generationcited by 395
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 146
- 2025KodCode: A Diverse, Challenging, and Verifiable Synthetic Dataset for Codingcited by 115
- 2025SEAL: Steerable Reasoning Calibration of Large Language Models for Freecited by 65
- 2025Teaching Language Models to Critique via Reinforcement Learningcited by 38
- 2024CRUXEval-X: A Benchmark for Multilingual Code Reasoning, Understanding and Executioncited by 31
- 2025Xolver: Multi-Agent Reasoning with Holistic Experience Learning Just Like an Olympiad Teamcited by 13
- 2025CipherBank: Exploring the Boundary of LLM Reasoning Capabilities through Cryptography Challengescited by 11
- 2025RefineCoder: Iterative Improving of Large Language Models via Adaptive Critique Refinement for Code Generationcited by 8
- 2024Automating Thought of Search: A Journey Towards Soundness and Completenesscited by 7
- 2025SkipKV: Selective Skipping of KV Generation and Storage for Efficient Inference with Large Reasoning Modelscited by 5
- 2025Nexus: A Lightweight and Scalable Multi-Agent Framework for Complex Tasks Automationcited by 4
12 most cited of 25 All 25 (JSON)
- 2026PaT: Planning-after-Trial for Efficient Test-Time Code Generation8 May 2026
- 2026LogitsCoder: Towards Efficient Chain-of-Thought Path Search via Logits Preference Decoding for Code Generation15 Feb 2026
- 2026FunPRM: Function-as-Step Process Reward Model with Meta Reward Correction for Code Generation29 Jan 2026
- 2026Policy of Thoughts: Scaling Test-Time Training for LLM Reasoning via Online Policy Evolution28 Jan 2026
- 2025SkipKV: Selective Skipping of KV Generation and Storage for Efficient Inference with Large Reasoning Models8 Dec 2025
- 2025Dual-Process Scaffold Reasoning for Enhancing LLM Code Debugging11 Nov 2025
- 2025TGPR: Tree-Guided Policy Refinement for Robust Self-Debugging of LLMs8 Oct 2025
- 2025CodeReasoner: Enhancing the Code Reasoning Ability with Reinforcement Learning23 Jul 2025
- 2025Xolver: Multi-Agent Reasoning with Holistic Experience Learning Just Like an Olympiad Team17 Jun 2025
- 2025RRO: LLM Agent Optimization Through Rising Reward Trajectories27 May 2025
- 2025From Reasoning to Generalization: Knowledge-Augmented LLMs for ARC Benchmark23 May 2025
- 2025MARCO: Meta-Reflection with Cross-Referencing for Code Reasoning23 May 2025
12 newest of 25 All 25 (JSON)
- 2026REFLEX: Reflective Evolution from LLM Experiencecited by 1
- 2026REFLEX: Reflective Evolution from LLM Experience15 Jun 2026
- 2024A Survey on Self-Evolution of Large Language Modelscited by 86
- 2024Hidden in Plain Text: Emergence & Mitigation of Steganographic Collusion in LLMscited by 52
- 2024The Limits of Inference Scaling Through Resamplingcited by 51
- 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
- 2024AgileCoder: Dynamic Collaborative Agents for Software Development based on Agile Methodologycited by 45
- 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinementcited by 21
- 2025On the Effect of Sampling Diversity in Scaling LLM Inferencecited by 18
- 2026In Line with Context: Repository-Level Code Generation via Context Inliningcited by 18
- 2025CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generationcited by 14
- 2025VeriDebug: A Unified LLM for Verilog Debugging via Contrastive Embedding and Guided Correctioncited by 12
- 2026CodeTracer: Towards Traceable Agent Statescited by 11
- 2025LLM4EFFI: Leveraging Large Language Models to Enhance Code Efficiency and Correctnesscited by 10
12 most cited of 52 All 52 (JSON)
- 2026Confidence-Gated Transductive Test Generation for Code Reranking11 Sep 2026
- 2026MARS: Multi-Specialist LLM Relay System for Competitive Programming24 Aug 2026
- 2026Diagnosis Before Recovery: Turning Agent Failures into Selective Self-Correction12 Aug 2026
- 2026Do Influence Tactics Matter? Investigating Prompt Framing Effects in LLM Code Generation11 Aug 2026
- 2026Falsification, Not Exposure: An Internally Preregistered Placebo-Controlled Decomposition of Self-Repair Feedback in Frozen Small Code Models30 Jun 2026
- 2026Unlocking LLM Code Correction with Iterative Feedback Loops16 Jun 2026
- 2026SolidCoder: Bridging the Mental-Reality Gap in LLM Code Generation through Concrete Execution20 Apr 2026
- 2026Precise Debugging Benchmark: Is Your Model Debugging or Regenerating?19 Apr 2026
- 2026CodeTracer: Towards Traceable Agent States13 Apr 2026
- 2026Executing as You Generate: Hiding Execution Latency in LLM Code Interpreters1 Apr 2026
- 2026Codified Finite-state Machines for Role-playing5 Feb 2026
- 2026In Line with Context: Repository-Level Code Generation via Context Inlining1 Jan 2026
12 newest of 52 All 52 (JSON)