Skip to main content
QUICK REVIEW

[Paper Review] An Exploratory Study of Debugging Episodes

Abdulaziz Alaboudi, Thomas D. LaToza|arXiv (Cornell University)|May 5, 2021
Software Engineering ResearchComputer Science54 references7 citations
TL;DR

This study analyzes 30 hours of live-streamed programming sessions from 11 professional developers to characterize real-world debugging episodes. Using qualitative coding of 2,137 debugging and 1,407 programming activities, it reveals that developers debug every eight minutes on average, with debugging consuming roughly half of their time and involving highly variable, diverse activities—especially in long episodes. The findings challenge the view of debugging as purely fault localization and suggest a need for integrated debugging tools that reduce context switching between editing, testing, browsing, and external resource use.

ABSTRACT

Many studies have long investigated how developers debug, shaping our understanding of debugging and helping motivate the creation of more effective tools. However, less is known about the typical progression of debugging in real world settings. In this study, we focus on characterizing debugging episodes from the moment at which developers first encounter a defect to the moment at which it is resolved. We investigate the typical duration and frequency of debugging episodes and the typical activities which occur. We observed developers by watching professional developers at work in live-streamed programming sessions. Using this data source, we curated 15 sessions in which 11 professional developers worked for 30 hours. We then systematically coded the debugging episodes and activities that occurred within these videos, yielding a dataset of 2137 debugging activities and 1407 programming activities. We found that debugging was frequent, even in programming work, occurring once every eight minutes. Debugging episodes vary greatly in time, with most being less than a few minutes and a few as more than 100 minutes. However, most debugging time is spent in long debugging episodes. We found no single activity that dominated debugging time, and long debugging episodes often involved many diverse activities. Finally, we found that,in terms of the activities developers did, programming and debugging were remarkably similar, particularly in the frequency of editing and browsing code.

Motivation & Objective

  • To understand the real-world progression of debugging episodes in naturalistic programming settings, beyond artificial lab studies or log-based analyses.
  • To characterize the frequency, duration, and activity patterns within debugging episodes using direct observation of professional developers.
  • To investigate how debugging activities compare to general programming activities in terms of frequency and type.
  • To inform the design of next-generation debugging tools by identifying key challenges in developer workflow, especially context switching across diverse debugging tasks.

Proposed method

  • The researchers curated 15 live-streamed programming sessions from professional developers working on real open-source projects, totaling 30 hours of video data.
  • They used a custom web-based tool, Observe-dev.online, to code and annotate video segments into distinct categories: programming, debugging, and irrelevant activities.
  • Coding was systematic and iterative, with researchers identifying and labeling activities such as editing, browsing, testing, inspecting program state, and consulting external resources.
  • The dataset included 2,137 debugging activities and 1,407 programming activities, enabling quantitative and qualitative analysis of behavior patterns.
  • The platform supported collaborative annotation, timeline visualization, and data sharing, ensuring reproducibility and transparency in coding.
  • The analysis focused on duration, frequency, and activity diversity across debugging episodes, comparing them to general programming work.

Experimental results

Research questions

  • RQ1How frequently do debugging episodes occur in real-world programming work?
  • RQ2What is the typical duration of debugging episodes, and how does it vary across episodes?
  • RQ3What types of activities do developers perform during debugging episodes, and how do they differ from programming activities?
  • RQ4How does the diversity and sequence of activities vary across short versus long debugging episodes?
  • RQ5In what ways do debugging and programming behaviors differ, particularly in code browsing, editing, testing, and external resource use?

Key findings

  • Developers debug, on average, once every eight minutes of programming work, indicating debugging is a frequent and integral part of the development process.
  • Debugging accounts for approximately half of the total programming time observed, with 15 hours of debugging time across 89 distinct episodes.
  • Most debugging episodes are short (under a few minutes), but the majority of debugging time is spent in longer episodes—some exceeding 100 minutes.
  • No single debugging activity dominated time; instead, long episodes involved a diverse mix of editing, browsing, testing, inspecting program state, and consulting external resources.
  • Programming and debugging behaviors are remarkably similar in frequency of code editing and browsing, suggesting that navigation and modification are central to both activities.
  • The primary differences between debugging and programming lie in testing and program state inspection, indicating that debugging involves deeper behavioral analysis beyond routine editing and navigation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.