Watchpoints are a type of breakpoint for that you set on individual data items (not on lines of code). They enable you to watch an area of memory associated with the particular item, and whilst debugging, execution breaks each time the associated memory is updated, or if a condition is attached to the data item, when the condition and/or hit count setting is satisfied. You can set watchpoints either before you start to debug or during your debug session.
To add a watchpoint:
 to open the Run and Debug panel, then click the row for 
                  		  WATCHPOINTS.
 to open the Run and Debug panel, then click the row for 
                  		  WATCHPOINTS. 
                  		
               The watchpoint is listed in WATCHPOINTS window, and is enabled by default.
 Toggle Enable Watchpoint on the line for the watchpoint in the 
                  		  WATCHPOINTS window.
 
                  		  Toggle Enable Watchpoint on the line for the watchpoint in the 
                  		  WATCHPOINTS window. 
                  		
               Optionally, to add a condition to the watchpoint:
The watchpoint conditions item is displayed.
 Edit Condition Expression - this starts the command palette for you to type a conditional expression, such as 
                        				variable EQUALS 
                        				value. (Bear in mind that 
                        				Breaks when is prefixed to your expression to form the complete expression. Also, there is no syntax validation of your expression; if
                        it is syntactically incorrect, it just will not work.)
 
                        				Edit Condition Expression - this starts the command palette for you to type a conditional expression, such as 
                        				variable EQUALS 
                        				value. (Bear in mind that 
                        				Breaks when is prefixed to your expression to form the complete expression. Also, there is no syntax validation of your expression; if
                        it is syntactically incorrect, it just will not work.) 
                        			 
                      Edit hit count - this starts the command palette and opens a drop-down list for you to select a criteria, then enter the appropriate value.
                        This represents the number of times that the area of memory is updated.
 
                        				Edit hit count - this starts the command palette and opens a drop-down list for you to select a criteria, then enter the appropriate value.
                        This represents the number of times that the area of memory is updated. 
                        			 
                     If you define both an expression and a hit count value, both criteria must be satisfied before execution will halt.
 Toggle Enable Conditions. The check mark or X to the left of the condition indicates whether the condition is enabled.
 
                  		  Toggle Enable Conditions. The check mark or X to the left of the condition indicates whether the condition is enabled. 
                  		
               When the watchpoint is enabled, debugging stops on the line that immediately follows the line on which the data has changed.