HTML and CSS Reference
In-Depth Information
Figure 7-11: Running commands on the console.
Any global variables or objects you enter on the console can turn into clickable objects as if you called con-
sole.log on them from somewhere in your game. So if you need to look at the state of an object, just enter it
on the console, open it, and then click down to the wanted property to see what is occurring.
Exercising the Script Tab
When you want to see the JavaScript that is loaded for your game or you need to dig deeper by running the step
debugger on your code, it's time to open the Script tab.
By default, the Script tab shows you the first file with JavaScript in it, but you can open up any file with
JavaScript in it by clicking the filename (see Figure 7-12 ) in the top left of the tab.
Search WWH ::

Custom Search