Once you have reached a breakpoint and examined variable values at that point, the next thing you will want to do is step forward in the application so you can watch the application change over time. There are several options available to you for stepping forward through the application depending on what your intentions are. The following screenshot shows these options: Step Over, Step Into, Step Out, Pause, and Detach Debugger:
As mentioned earlier, when the debugger is attached, you can get the value of any variable in your game. However, it would be cumbersome to have to constantly look for each individual variable, especially if there is a variable that we want to examine over time. You can accomplish this by setting up a watch for a variable of interest and observe its value as it changes.
We can see here that Screen has a currentResolution attribute attached to it.
Here we are able to see all of the attributes of the Screen.currentResolution object.
We have just stepped through our application using the attached debugger and added a watch so that we can observe a variable as it changes over time. Adding watches is a common way to examine variables as they change during the execution of the game. As you begin writing complex scripts, creating watches will help you determine whether or not the correct behaviors are happening at runtime.
13.58.182.39