# Watches

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

[Watches](examining-suspended-program.html#watches) help evaluate any number of variables or expressions in the context of the current stack frame. The values are updated with each step through the application, and become visible every time the application is suspended.

While the `Evaluate Expression` command from the context menu of the [Variables](debug-tool-window-variables.html) pane enables you to see one expression at a time, the Watches pane shows multiple expressions that persist from one debug session to another, until you remove them.

You can create watches in this pane, in the [Variables](debug-tool-window-variables.html) pane, and also in the editor.

Watch expressions are always evaluated in the context of a stack frame that is currently inspected in the [Frames](debug-tool-window-frames.html) pane. If an expression cannot be evaluated, it is displayed with a question mark.

Procedure: Open the Watches pane

By default, the Watches pane is hidden and the watches are shown in the [Variables pane](debug-tool-window-variables.html).

* To have the Watches pane displayed separately and view the configured watches in it, release the ![Show watches in Variables tab](https://resources.jetbrains.com/help/img/idea/2026.3/app.debugger.watch.svg) toggle button on the toolbar of the Variables pane. By default, the button is pressed.

* To hide the Watches pane and view the watches in the Variables pane, press the ![Show watches in Variables tab](https://resources.jetbrains.com/help/img/idea/2026.3/app.debugger.watch.svg) toggle button on the toolbar of the Watches pane.

![Open the Watches pane](https://resources.jetbrains.com/help/img/idea/2026.3/go_open_watches_pane.png)

## Evaluate expression field

Procedure:

1. To evaluate an arbitrary expression, enter it in the Evaluate expression field in the Watches pane and press `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (VSCode), `⏎` (VSCode (macOS))

2. The result is displayed right below. You can also [add the expression to watches](null) by clicking ![](https://resources.jetbrains.com/help/img/idea/2026.3/app-client.expui.debugger.addToWatch.svg) in the right-hand part of the expression field.

## Toolbar

| Item | Shortcut | Description |
| --- | --- | --- |
|  ![New Watch Button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg)  | `Insert` | Click this button to create a new watch. |
| ![Remove Watch button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.remove.svg) | `Delete` (Windows), `⌦` (macOS), `⌦` (IntelliJ IDEA Classic (macOS)), `⌦` (macOS System Shortcuts), `Delete` (XWin), `Delete` (GNOME), `Delete` (KDE), `Delete` (Emacs), `Delete` (Sublime Text), `⌦` (Sublime Text (macOS)), `Delete` (VSCode), `⌦` (VSCode (macOS)) | Click this button to remove the selected watch from the list. |
| ![Move Watch Up button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.up.svg) ![Move Watch Down button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.down.svg) | `Alt+Up` (Windows), `⌃ ⇧ ↑` (macOS), `⌃ ↑` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ ↑` (macOS System Shortcuts), `Alt+Up` (XWin), `Alt+Up` (GNOME), `Alt+Up` (KDE), `Alt+Up` (Emacs), `Alt+Up` (Sublime Text), `Alt+Up` (Sublime Text (macOS)), `Alt+Up` (VSCode), `Alt+Up` (VSCode (macOS))`Alt+Down` (Windows), `⌃ ⇧ ↓` (macOS), `⌃ ↓` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ ↓` (macOS System Shortcuts), `Alt+Down` (XWin), `Alt+Down` (GNOME), `Alt+Down` (KDE), `Alt+Down` (Emacs), `Alt+Down` (Sublime Text), `Alt+Down` (Sublime Text (macOS)), `Alt+Down` (VSCode), `Alt+Down` (VSCode (macOS)) | Use these buttons to change the order of watches. |
| ![Duplicate Watch button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.copy.svg) | `Ctrl+D` (Windows), `⌘ D` (macOS), `⌘ D` (IntelliJ IDEA Classic (macOS)), `⌘ D` (macOS System Shortcuts), `Ctrl+D` (XWin), `Ctrl+D` (GNOME), `Ctrl+D` (KDE), `Meta+D` (Emacs), `Ctrl+Shift+D` (Sublime Text), `⌘ ⇧ D` (Sublime Text (macOS)), `Ctrl+D` (VSCode), `Ctrl+D` (VSCode (macOS)) | Use this button to create a copy of the selected watch. |
| ![Show watches in Variables tab](https://resources.jetbrains.com/help/img/idea/2026.3/app.debugger.watch.svg) | Show watches in Variables tab |     Use this toggle button to have the Watches pane hidden or shown. By default, the button is pressed and displayed on the toolbar of the Variables pane. Consequently, the Watches pane is hidden and the watches are shown in the Variables pane.        * To have the Watches pane displayed separately and view the configured watches in it, release the Show watches in Variables tab toggle button. The Watches pane appears with the Show watches in Variables tab toggle button on the toolbar.    * To hide the Watches pane and view the watches in the Variables pane, press the ![Show watches in Variables tab](https://resources.jetbrains.com/help/img/idea/2026.3/app.debugger.watch.svg) toggle button on the toolbar of the Watches pane. The toggle button returns to the default location on the toolbar of the Variables pane.    |

## Context menu

| Item | Shortcut | Description |
| --- | --- | --- |
| New Watch |   | Choose this command to create a new watch. A text field opens, where you can enter new watch expression.  |
| Remove Watch |  `Delete` (Windows), `⌦` (macOS), `⌦` (IntelliJ IDEA Classic (macOS)), `⌦` (macOS System Shortcuts), `Delete` (XWin), `Delete` (GNOME), `Delete` (KDE), `Delete` (Emacs), `Delete` (Sublime Text), `⌦` (Sublime Text (macOS)), `Delete` (VSCode), `⌦` (VSCode (macOS))  | Choose this command to delete the currently selected watch expression from the list. |
| Remove All Watches |  | Choose this command to delete all watch expressions from the list. |
| Edit |  `F2` (Windows), `F2` (macOS), `F2` (IntelliJ IDEA Classic (macOS)), `⌃ Comma` (macOS System Shortcuts), `F2` (XWin), `F2` (GNOME), `F2` (KDE), `F2` (Emacs), `F2` (Sublime Text), `F2` (Sublime Text (macOS)), `Alt+F8` (VSCode), `⌥ F8` (VSCode (macOS))  | Choose this command to change the selected watch expression. |
| Inspect |  | This command is available for fields, local variables and reference expressions, and opens a non-modal Inspection window, where you can concentrate on a particular reference. You can open as many Inspection windows as required. The view in the Inspection window is the same as in the [Watches]() pane, but requires less screen space. |
| Jump to Source |  `F4` (Windows), `⌘ ↓` (macOS), `F4` (IntelliJ IDEA Classic (macOS)), `F4` (macOS System Shortcuts), `F4` (XWin), `F4` (GNOME), `F4` (KDE), `F4` (Emacs), `F4` (Sublime Text), `F4` (Sublime Text (macOS)), `F4` (VSCode), `F4` (VSCode (macOS))  | This command opens the source code of the selected variable or field in the editor and places the caret in a proper line. |
| Copy Value |  `Ctrl+C` (Windows), `⌘ C` (macOS), `⌘ C` (IntelliJ IDEA Classic (macOS)), `⌘ C` (macOS System Shortcuts), `Ctrl+C` (XWin), `Ctrl+C` (GNOME), `Ctrl+C` (KDE), `Ctrl+Insert` (Emacs), `Ctrl+C` (Sublime Text), `⌘ C` (Sublime Text (macOS)), `Ctrl+C` (VSCode), `⌘ C` (VSCode (macOS))  | Copies the selected node value to the clipboard. |
| Copy Name |  | Copies the selected node name to the clipboard. |

## See also

### Procedures

[Debugging](debugging-code.html) [Breakpoints](using-breakpoints.html)

### Reference

[Frames](debug-tool-window-frames.html)  [Console tab](debug-tool-window-console.html)  [Variables](debug-tool-window-variables.html)  [Debugger](settings-debugger.html)

