arXiv:2611.08666cs.AINov 2026

Manuscript Offprint

arXiv:2611.08666

Pdb or Not to Be: Comparing Debugging Interfaces With PassX_{X}@kk

Ryan Magnuson, Ellie Kitanidis, Ariel Lee

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Interactive debuggers are indispensable to human software development, yet coding agents overwhelmingly rely on edit-execute-observe loops, using common bash tools, test scripts, and print statements to debug via repeated shell commands. Stepping through a debugger provides live access to runtime state, which may enable different problem-solving capabilities. However, prior work typically introduces the debugger as an additional tool or through a new subagent, making its individual contribution difficult to isolate from the associated scaffold changes. To address this, we compare a debugger-only agent against a bash-only agent on all 500 SWE-bench Verified instances, holding the rest of the scaffold fixed. We evaluate both architectures on two models, GPT-OSS-120B and Nemotron-3-Ultra-550B, with three independent runs per architecture ×\times model configuration. Crucially, to distinguish interface specialization from expanded coverage under repeated sampling, we introduce passX_X @ kk, a cross-agent pass@ kk that provides an unbiased estimator of the probability that at least one of kk agents is successful. Although the bash and debugger agents solve partially disjoint subsets of the benchmark in any single pair of runs, our passX_X @2 estimator reveals that this is largely due to run-to-run variance rather than tool complementarity. Across both models, we find that two bash rollouts outperform the combination of one bash and one debugger rollout. Our findings highlight the importance of accounting for stochastic variance in evaluating agent and tool diversity, and we hope that passX_X @ kk will serve as a useful framework for the community.

1 Introduction

Most coding agents, including production-grade assistants [1, 15, 6], debug programs primarily through a shell: inserting print statements, executing code, and parsing outputs or exception stack traces. Although several works have demonstrated benefits from execution state inspection for agentic program repair [27, 20, 18], live debuggers remain underexplored as an observation and execution-control interface, despite offering a direct path to runtime state information—live stack frames, bound values, and controlled stepping—that shell-only workflows typically must reconstruct through instrumentation and run artifacts. A central question is whether this interface enables qualitatively different debugging capabilities, or merely provides an alternative way to access information that a shell-only agent can already recover. Existing debugger-enabled agents typically attach the debugger to an existing scaffold by incorporating it as a first-class tool [24, 10, 9] or as part of a multi-agent system [19, 5, 7]. Because the debugger is additive in these studies, it is difficult to disentangle the value of the debugger's runtime evidence from the complex impact that expanding the tool-call action space or multi-agent framework can have on the policy as a whole [21]. Comparative studies are further limited by the fact that agent performance is commonly reported for a single rollout [26, 19, 5],

Workshop on Who Verifies the Agents? Toward Reliable Agent Development, NeurIPS 2026.

despite the fact that membership in the solved task set can shift dramatically under repeated sampling of the same architecture [11, 2]. To distinguish potential specialization between tools from stochastic variance between runs, we define passX_X @k, a cross-agent equivalent of pass@k that combines nn runs of each of kk agents into a single unbiased estimator of their combined solve rate. With this metric in hand, we ask: given a live debugger instead of a shell, how is the agent's performance impacted, and is there evidence that the two interfaces provide complementary capabilities?

To answer this, we compare an agent equipped with an interactive Python debugger (pdb-agent) against one equipped with a general bash tool for debugging (bash-agent) on SWE-bench Verified [8, 13], with the model, prompts, budgets, sandbox, and all other tools held fixed. A single run of each agent misleadingly suggests that pdb-agent solves problems bash-agent misses. However, as Figure 4 shows, the debugger-only agent's exclusive solves shrink in a repeat analysis with three runs per agent, indicating that much of its apparent specialization is sampling variance. Figure 3 illustrates that two bash-agent rollouts outperform the combination of one bash-agent plus one pdb-agent rollout at every relay budget and under both models evaluated, while an ablation demonstrating that simultaneous access to both tools provides no apparent benefit to bash-agent is deferred to Appendix D. Both the size of the performance gap and the token efficiency of the architecture are model-dependent, as shown in Figure 2, with GPT-OSS paying roughly twice as much per solved problem under pdb. That said, the shell's generality cuts both ways; an interface that can execute anything is also difficult to contain, and in Section 4.3 we report an early run in which shell access exposed a benchmark leak. Taken together, our results provide a controlled, budget-matched comparison showing that, for these models, a live debugger neither matches a shell nor adds complementary coverage to one. We also contribute the passX_X @k estimator, which lets any such cross-agent comparison be made with an unbiased, variance-aware statistic.

References (22)