Chapter 1, Exercise 3 – Browser Debugging Tools

Learn how to use your browser’s debugging tools. It’s likely you’ll have access to breakpoints, watch variables, and the variable stack, so read about and experiment with them. Learning your way around the tools now can be quite a time-saver when you’re debugging later. Try adding breakpoints within the init and startGame functions in game.js and trace the code as it runs.

Debugging in Firefox:

Debugging in Chrome:

Debugging in Internet Explorer:

Leave a Reply

Your email address will not be published. Required fields are marked *