Debugging

Projected Time

1.5 to 2 hours

Prerequisites

Motivation

Which companies use debugging? Everyone because all companies want their product to be bugs/errors free.

Objectives

Participants will be able to:

Specific Things to Learn

Materials

Lesson

General Tips for Debugging (with VS Code)

Common Mistakes / Misconceptions

Independent Practice

  1. Techtonica staff will assign pairs. In pairs, work through the Get Started with Debugging JavaScript with Chrome Dev Tools (tutorial).

  2. On their own, each participant writes a program of their choosing using REPL.it and places at least 1 bug in it.

Group Practice

  1. To go with #2 from the Independent Practice: Techtonica staff will assign pairs. Try to debug the program your partner wrote in REPL.it. Swap pairs at least 2 more times so everyone has multiple opportunities to debug someone else’s code.

Supplemental Resources

Check for Understanding

In a roundtable discussion format, participants share the kinds of bugs they encountered in each other’s code, how they were able to identify those bugs, and what they did to fix them.

Answer the following questions: