Setup

Fork, clone, debug index.js

Do

  1. Global variables.
  • global variables are very dangerous. You may have no idea where they are declared or what code assigned to the variable
  • debug index.js. What is the value of the mysteryvalue variable.
  1. Loops
  • debugging a loop may not be ideal if you have to observe the entire loop execute
  • debug functions.js. What is the value of startingNumber immediately before the loop executes? after the loop executes.
  1. Function calls
  • It may be difficult to determine what code called a function.
  • debug functions.js. What file and line number is this function being called from?
  1. Where is a function
  • You may see a function call and need to know where that function is defined
  • Step into index.js line 10, what file and line number is the function comeFindMe defined.