Debug tool window | IntelliJ IDEA (original) (raw)

When you start a debugger session, the Debug tool window opens. Use this window to control the debugger session, view and analyze the program data (frames, threads, variables, and so on), and perform debugger actions.

By default, the Debug tool window opens when your program hits a breakpoint and is not hidden when the session is terminated. To change this behavior, go to the Build, Execution, Deployment | Debugger settings page Ctrl+Alt+S and clear the Show debug window on breakpoint checkbox.

Debug tool window overview

If you prefer that the Debug tool window is hidden until a breakpoint is hit, clear the Open run/debug tool window when started checkbox in the corresponding run/debug configuration.

Sessions

The available debug sessions are separated into tabs in the top part of the Debug tool window.

Session tabs

If you enable the Services tool window for specific run/debug configurations, the entire view of the Debug tool window will be displayed inside the Services tool window when you debug any of these configurations.

All the information in the editor, like inline variable values and execution point, is shown for the selected session tab. This is important if you are running several debug sessions in parallel that use the same classes.

Inline variables view and execution point for the current session

When you close a tab, the corresponding debug session terminates.

Tabs

The Debug tool window shows the following tabs for each session:

Switch tabs

Show/hide tabs

Move tabs

You can arrange the tabs to fit your preference. You can move a tab to another location or group a tab with another tab, so that they share the same space on the screen.

Restore default layout

If you changed the layout of the Debug tool window and don't like the new arrangement, you can revert it to the default state.

The debugger toolbar contains the most commonly used actions for controlling the debugger session and stepping.

The debugger's toolbar

You can configure the list of actions available on the toolbar according to your preferences.

Customize the debugger's toolbar

  1. To add a debugging action, right-click the debugger toolbar, select Add to Debugger Toolbar from the context menu, and then select the required action from the list.
    Customize Debugger Toolbar - add actions
  2. To add an action that is not directly related to debugging, right-click the debugger toolbar, and then select Customize Toolbar from the context menu.
    The 'Customize toolbar' option in the context menu of the debugger's toolbar
    In the dialog that opens, click Add, and then select the required action.

Last modified: 03 April 2025