Practice using different features in your browser's DevTools Debugger to understand interactive JS programs.
- from
javascript.info
: DevTools, Debugging Chrome - Study
/3-understanding-programs/1-predicting-execution
devtool-setup.mp4
guide.mp4
- the JS files
- 🥚 Stepping Through: You can use the Step button to go through a program one statement at a time, pausing an any line you want to inspect.
- 🥚 Scope Panel: You can use the Scope panel in your debugger to find the value of all active variables at step of execution, including when a variable is uninitialized.
- 🥚 Hovering Previews: You can preview the value of any expression or initialized variable in your program, including parts of a longer expression.
- 🐣 Continue to Here: When paused in the debugger, you can skip the program's execution to a specific line using the "continue to here" option.
- 🐣 Breakpoints: Once in the Debugger, you can set and unset breakpoints to skip ahead to specific lines. You can also set and unset breakpoints within a line when possible.
- 🐥
debugger
Statement: You understand the difference betweendebugger
and a breakpoint, and can write adebugger
statement in your source code to pause the program before specific lines. - 🐥 Stepping Over: You can step over functions in your program to skip their implementation and focus on your program's behavior.
Practice stepping and skipping through programs using your browser's debugger.
- All Together: A coach demonstrates the debugger features in
/1-isolate/examples
- In Small Groups: Practice stepping through and predicting the programs in
/1-isolate/exercises
Break!
- All Together: A coach demonstrates how to step through JavaScript in an
HTML project with
/2-integrate/examples
- In Small Groups: Practice stepping through and predicting the programs in
/2-integrate/exercises
- All Together Regroup with ~20 minutes left at the end of class for each
group to present:
- what went well?
- what went less well?
- lessons learned
No deliverables. Just lots of study time, alone and in groups. Here's some ideas for what to focus on after this lesson:
- Continue studying your favorite online tutorials
- Finish studying
/2-just-enough-javascript
if you haven't yet - Study
/3-understanding-programs
/0-flashcards
: ~20 minutes every day (add more cards as you go!)