Summary

Developer tools built into Chrome are useful for debugging and optimizing your game. Knowing how to use the tools in your browser to hone in on exactly where you are running into a problem can make you a productive developer because you’ll never be sitting at a blank screen wondering why nothing works. A basic rule of thumb when things aren’t working is to start with a look at the Network tab, add the console.log statement, and then move onto full step-debugging. On a mobile device your options are more limited, but using tools such as Weinre means you’ll have some more information to debug your game.

Get Professional HTML5 Mobile Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.