Watches
Regarding the stepping functionalities we discussed earlier, they are significantly useful for controlling the execution of the program we'd like to debug, but we were unable to truly examine the value of the variables we care about (a and b), even if we could control our program execution, in our current example. To do this, we can use watches.
Watches in debugging are a mechanism that programmers can use to follow the changes that are taking place in specific variables. Once a watch has been created for a variable, the value of that variable will be updated at each stage as you step through the program you are debugging. In comparison to inline debugging, watches are a more active and in-depth way to monitor your variables.
Much ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access