JetBrains Fleet
 

Watches

Last modified: 11 February 2024

If you want to keep track of some variable or the result of a more complex expression, set up a watch for this variable or expression. This is useful when you need to evaluate something that is not regularly displayed on the list of variables, or to pin some instance variable thus eliminating the need to expand the tree after each step.

Watches are evaluated in the context of the selected frame. Watches cannot be evaluated when they are out of context or when they fail to compile.

Watches are a part of your project. This means you can stop and rerun the debugging session without risk of losing them.