
Explore the six debugging activities—reporting, reproducing, locating, fixing, validating, and documenting—and learn to trace root causes with minimal changes to ensure robust fixes.
This lecture describes the concepts of control and data dependencies and the creation of the corresponding trees.
Learn delta debugging, a binary search technique that minimizes the delta around a bug by halving the search space of input, data, or configuration until the failing delta is found.
Apply delta debugging to locate a division by zero fault by progressively narrowing the search space from iteration loops to code blocks and atomic steps, using breakpoints and pass/fail criteria.
Learn to use execution trace, spectrum, and coverage to debug by comparing failing and successful test runs, identifying suspicious statements, and guiding fixes through input and step-by-step comparison.
Explore debugging tools in integrated development environments, using Eclipse and Java, including pause and continue, breakpoints, call stack inspection, expression evaluation, and step into, over, or out of functions.
Explore debugging a Java factorial program in Eclipse: set breakpoints, switch to the debug perspective, inspect variables and stack frames, and use step over vs step into to control execution.
Demonstrates debugging workflows with an infinite loop, breakpoints, and pause. Inspect the main thread and stack frames, expand arrays of strings, and evaluate expressions to view values.
Apply the code examination process to localize faults by starting at the failure, examining data and processing, and using delta debugging to trace back through dependency steps to root cause.
Demonstrates a practical debugging demo on datapath, locating a bug by running tests, tracing a tokenizer, and validating a fix through re-run tests.
Debugging is the most expensive task in the SDLC. More specifically, the fault localization (i.e., locating the root cause of the problem) step is the real bottleneck in the entire process.
There are several attempts in academia to address this problem using automation techniques with relative success in experimental settings and for specific circumstances.
However, in reality, every bug is a case on its own, and there’s no single automated debugging technique that can be applicable to every situation.
This course introduces useful concepts that help create a mindset that software developers can use to deal with difficult bugs.
Section 1: Introduction
What is a bug? (YouTube Video)
In this lecture you'll learn about the different terms that describe computer problems as well as the story of using the term "bug" to describe them.
Activities involved in software debugging
This lecture describes the activities needed for a proper debugging process.
Section 2: Useful Techniques
This section provides a description of a set of useful techniques that you can use for debugging, including navigating the dependency trees, delta debugging and comparisons.
Section 3: Common Debugging Tools
This section describes a set of tools available in most IDEs
Section 4: Code examination process
This section describes a process to follow while examining the code during fault localization.
Section 5: Debugging Demos
In this section you'll see examples of using the concepts described in the course to debug real programs.