Advantages of Watch in comparison to Break point

3

Since it is possible to evaluate the value of a variable by inserting a break point where it will be used, I see no apparent advantage.

  • Is there any advantage of using watch instead of break point to debug the code? Which are? Home
  • Is there a situation where watch-only use is really necessary?
asked by anonymous 20.06.2017 / 18:04

1 answer

2
  

Is there any advantage of using watch instead of break point to debug the code? Which are?

When you have to check the value of five variables at once, or the state of the instance executing your logic, or properties of properties properties, you will notice the value of watch . >

  

Is there a situation where watch-only use is really necessary?

You will never be able to use watch if you are not in debug mode. The closest of this, when you are not in debug mode, is to use some form of logging to save a history of the values of the variables as the code runs. But this generates garbage in storage over time.

    
28.06.2017 / 18:52