← Latest papers
💻 computer science

Empowering Autonomous Debugging Agents with Efficient Dynamic Analysis

This paper introduces the Agent-centric Debugging Interface (ADI), a cost-efficient, function-level debugging framework powered by Frame Lifetime Trace that significantly enhances autonomous program repair agents, enabling a basic agent to resolve 63.8% of SWE-bench tasks and providing consistent performance gains when integrated with state-of-the-art systems.

Original authors: Jiahong Xiang, Xiaoyang Xu, Xiaopan Chu, Hongliang Tian, Yuqun Zhang

Published 2026-04-28
📖 5 min read🧠 Deep dive

Original authors: Jiahong Xiang, Xiaoyang Xu, Xiaopan Chu, Hongliang Tian, Yuqun Zhang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Problem: The "Blind" Detective and the "Micromanaged" Intern

Imagine you are trying to fix a broken machine (a computer program). You have a very smart AI detective (an Autonomous Agent) whose job is to find the broken part and fix it.

The Old Way (Post-Mortem Debugging):
Currently, most AI detectives work like a coroner. They wait for the machine to crash or give a wrong answer. Then, they look at the final result (the "body") and try to guess what went wrong.

  • The Flaw: If the machine made a tiny calculation error deep inside a complex process, the final result looks almost the same as the right answer. The detective sees the wrong answer but has no idea why it happened. They are guessing in the dark, often making the same mistake over and over until they run out of money (computational budget).

The "Natural" Solution (Traditional Debuggers):
You might think, "Let's just give the detective a magnifying glass to look at every single step the machine takes!" This is like using a traditional debugger (like PDB or GDB).

  • The Flaw: This is like hiring a micromanaged intern. To see what's happening, the detective has to ask the machine to "stop," "show me this variable," "go to the next line," "show me that variable," "go to the next line."
  • Because the AI has to ask a question for every single line of code, it gets exhausted. It spends all its money asking questions and never actually solves the problem. It's too slow and too expensive.

The Solution: The "Executive Summary" Dashboard

The authors introduce a new tool called ADI (Agent-centric Debugging Interface). Think of ADI as a high-tech dashboard or a smart summary report designed specifically for the AI detective.

Instead of looking at the machine line-by-line, ADI lets the detective look at the machine function-by-function.

1. The "Frame Lifetime Trace" (The Movie Reel)

In traditional debugging, you see one frame of a movie at a time. ADI gives the detective a complete, self-contained movie reel for every single function the program runs.

  • This "reel" (called a Frame Lifetime Trace) shows:
    • What ingredients (arguments) went into the function.
    • Every single step the function took inside.
    • How the ingredients changed at every step.
    • What the final result was.
  • Analogy: Instead of asking the intern, "What is the value of X? Now Y? Now Z?", the detective gets a single document that says: "Here is exactly how this specific part of the machine worked, from start to finish, including every change it made."

2. The "High-Level Commands" (The Remote Control)

ADI gives the detective a set of smart buttons (commands) to navigate these movie reels without getting bogged down in details.

  • break / continue: "Pause the movie right when this specific function starts, but only if a certain condition is met."
  • step-into / step-out: "Zoom in to see what happened inside this function," or "Zoom out to see who called this function."
  • call-tree: "Show me a family tree of who called whom."
  • execute: "Pretend I changed this one line of code just for a second—what would happen?"

How It Works in Real Life (The Example)

The paper uses a real example from the Astropy library (a tool for astronomy).

  • The Bug: A function was calculating a "separability matrix" (a grid showing if things are independent). For simple cases, it worked. For complex, nested cases, it gave the wrong answer, but the error was silent (no crash, just wrong data).
  • The Old AI: Tried to fix it by guessing. It ran the test, saw the wrong grid, guessed a fix, ran the test again, saw the same wrong grid, and got stuck in a loop.
  • The PDB AI: Tried to step through line-by-line. It asked hundreds of questions, ran out of money, and gave up.
  • The ADI AI (FramePilot):
    1. It asked for a summary of the main function.
    2. It saw the "movie reel" and noticed that inside a sub-function, a specific array was being filled with the wrong numbers (all 1s instead of real data).
    3. It used a command to jump straight to that sub-function and inspect the specific moment the error happened.
    4. It found the exact line of code causing the issue and fixed it.
    5. Result: It solved the problem quickly and cheaply.

The Results: Faster, Cheaper, and Smarter

The researchers tested this new system (called FramePilot) on SWE-bench, a famous test suite of real-world software bugs.

  • Success Rate: The AI with ADI fixed 63.8% of the difficult tasks. This is actually better than a highly optimized, expensive commercial agent (Claude-Tools) that cost much more to run.
  • Cost: It solved these problems for an average of $1.28 per task.
  • Plug-and-Play: They also took this ADI tool and added it to two other top-tier AI agents. It made those agents better too, improving their success rates by 6% to 18%.

The Bottom Line

The paper claims that by changing how AI agents "look" at code—moving from a slow, line-by-line interrogation to a fast, function-level "executive summary"—we can make autonomous debugging much more effective and affordable. It turns the AI from a confused intern into a skilled detective with a perfect map of the crime scene.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →