IntelliJ doesn't save debug watch expressions

According to this bug report:

this is intended behaviour.

Could someone explain why it is desirable to forget all my carefully crafted watch expressions each time the toolwindow is closed? I think that the expressions should be permanently saved against each project.

Thanks for listening.

1 comment

Hi Rayz,
The main reasons are:
1. Expressions that make sense in some particular context in one debug session, will be very likely useless in successive debug sessions and different contexts, unless you debug exactly same places of code every time you start debugger. For this case we believe that it is enough to keep expressions until toolwindow is closed so that they survive multiple restarts of some particular debug session.
2. If all expressions are persisted across all debug sessions, there will be soon lots of stuff in watches view that is not relevant for particular debug context.


Please sign in to leave a comment.