Research by Microsoft indicates that AI coding tools are inadequate in essential debugging tasks
AI tools lag behind humans in debugging due to limited decision-making capabilities.

Microsoft's recent study indicates limitations in current AI coding tools, particularly in essential debugging tasks, despite their capability to boost productivity by suggesting coding examples. AI tools like GitHub Copilot and other AI-driven coding platforms lack the ability to actively seek information or engage with code execution when issues arise, a task routinely performed by human developers. This gap highlights a significant shortcoming in AI's current role within software development.
The study involved the introduction of 'debug-gym,' a new environment by Microsoft designed to address these limitations by allowing AI models to interact with real-world codebases. These models were tested using interactive tools available to human developers, highlighting an information-seeking behavior crucial for effective debugging. Yet, the performance of these AI agents remained limited, solving fewer than half of the tasks in various benchmarks, indicating they are far from replacing human engineers.
Several challenges were identified during this research. First, the training data for current Large Language Models (LLMs) is insufficient in examples of decision-making behavior typical during real debugging sessions. Second, these models have not yet mastered the use of debugging tools to their full potential. As the researchers noted, "We believe this is due to the scarcity of data representing sequential decision-making behavior (e.g., debugging traces) in the current LLM training corpus."
To address these challenges, Microsoft proposes training AI with specialized data focused on debugging processes and trajectories. The suggestion includes developing an 'info-seeking' model aimed at gathering relevant debugging contexts and facilitating code generation, hoping to enhance AI's debugging capabilities. AI advancements are expected to push capabilities forward, but AI will continue to serve as an assistant, not a replacement, for human software developers.
Echoing earlier studies, it’s clear that while AI has shown promise in generating operational code for specific tasks, it often introduces bugs and security vulnerabilities. Thus, without advancements in AI-driven debugging capabilities, AI will remain incomplete as a substitute for human programmers, serving more as a supporter in software development.
Sources: TechSpot, Microsoft, GitHub