Watches

Watches allow you to quickly evaluate expressions while you step through your script.

How to add a new watch expression
How to add a new watch expression

By default, watches are displayed in the variables view. Alternatively, you can configure the view to display watches in a separate panel on the right. Please refer to the IntelliJ documentation for instructions.

The watches are automatically updated when you step through your script.

Evaluated watches while debugging a Bash script in IntelliJ
Evaluated watches while debugging a Bash script in IntelliJ