Towards a Neural Debugger for Python
Not on the map. Why?
Abstract (arXiv)
Training large language models (LLMs) on Python execution traces grounds them in code execution and enables the line-by-line execution prediction of whole Python programs, effectively turning them into neural interpreters (FAIR CodeGen Team et al., 2025). However, developers rarely execute programs step by step; instead, they use debuggers to stop execution at certain breakpoints and step through relevant portions only while inspecting or modifying program variables. Existing neural interpreter approaches lack such interactive control. To address this limitation, we introduce neural debuggers: language models that emulate traditional debuggers, supporting operations such as stepping into, over, or out of functions, as well as setting breakpoints at specific source lines. We show that neural debuggers -- obtained via fine-tuning large LLMs or pre-training smaller models from scratch -- can reliably model both forward execution (predicting future states and outputs) and inverse execution (inferring prior states or inputs) conditioned on debugger actions. Evaluated on CruxEval, our models achieve strong performance on both output and input prediction tasks, demonstrating robust conditional execution modeling. Our work takes first steps towards future agentic coding systems in which neural debuggers serve as a world model for simulated debugging environments, providing execution feedback or enabling agents to interact with real debugging tools. This capability lays the foundation for more powerful code generation, program understanding, and automated debugging.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 26 of its 33 references that are in the map. First posted on arXiv 10 Mar 2026.
Builds on
26 of 33 references.
References · 26
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2023Teaching Large Language Models to Self-Debugcited by 988
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 263
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 151
14 more
- 2024CodeGemma: Open Code Models Based on Gemmacited by 150
- 2014Learning to Executecited by 106
- 2015Neural Programmer-Interpreterscited by 101
- 2025Which Economic Tasks are Performed with AI? Evidence from Millions of Claude Conversationscited by 96
- 2024NExT: Teaching Large Language Models to Reason about Code Executioncited by 63
- 2020Learning to Execute Programs with Instruction Pointer Attention Graph Neural Networkscited by 35
- 2023Code Execution with Pre-trained Language Modelscited by 34
- 2024What Makes Large Language Models Reason in (Multi-Turn) Code Generation?cited by 29
- 2025Cyber-Zero: Training Cybersecurity Agents without Runtimecited by 22
- 2020Learning Semantic Program Embeddings with Graph Interval Neural Networkcited by 20
- 2025What I cannot execute, I do not understand: Training and Evaluating LLMs on Program Execution Tracescited by 12
- 2022Static Prediction of Runtime Errors by Learning to Execute Programs with External Resource Descriptionscited by 11
- 2021Implementation of Live Reverse Debugging in LLDBcited by 1
- 2024Debugging Functional Programs by Interpretationcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Self-Execution Simulation Improves Coding Modelscited by 3
- 2026Self-Execution Simulation Improves Coding Models11 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2025ToolCoder: A Systematic Code-Empowered Tool Learning Framework for Large Language Models
- 2025CodeReasoner: Enhancing the Code Reasoning Ability with Reinforcement Learning
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models
- 2025Revisit Self-Debugging with Self-Generated Tests for Code Generation
- 2026Causal Syntax Circuits in CodeLMs: Budget and Probe Decide What Looks Localised
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-step
- 2026CodeEval: A pedagogical approach for targeted evaluation of code-trained Large Language Models
- 2025Can Large Language Models Reason About Complex Execution Paths? An Empirical Study on Python