Step 5

The Developer Tools assists in debugging your code.

  1. Select the "source" tab in the developer tools.

  1. Open the script.js file.

  1. Place a breakpoint on line 18. (Click on the line number.)

  1. Click on one of the cells in the game board; you must see a "paused in debugger" message appear at the top of the page.

Congratulations! You are in debugging mode. You can step over (or into) code as you have done before when debugging Java or C++ programs.