CLion 2024.1 Help

Debug tool window

The Debug tool window opens when you start a debug session. With this window, you can perform various debugger actions and analyze the program data (frames, threads, variables, and so on).

This is a brief overview of the Debug tool window. For general instructions on using tool windows, refer to Tool windows.

To cycle through the tool window tabs, press Alt+Right and Alt+Left.

Debug tool window overview

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 window for specific run/debug configurations, the entire view of the Debug window will be displayed inside the Services window when you debug any of these configurations.

All the information 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 code.

Tabs

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

  • Frames: lets you navigate in call stacks of the threads.

  • Variables: lists the variables available in the current context and lets you analyze and modify the program state.

  • Watches: lets you manage watches. By default, watches are shown on the Variables tab for more efficient use of the screen space. If you have a lot of watches, consider viewing them in a separate tab.

  • Debugger console: displays the GDB/LLDB output and error streams, and lets you run debugger commands.

  • Threads: displays the list of live threads and lets you switch between them. From this tab, you can export threads information in text format.

  • Memory View: shows raw memory of the running process.

  • Parallel Stacks: shows thread call stack information for all the threads in your application.

Show/hide tabs

  • Click Layout options button and select which tabs you want to see.

    Debugger tool window tabs menu

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.

  • Click Layout options button in the top-right corner of the Debug tool window, then click Restore Default Layout.

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.

  • Drag the tab header to the desired location. The blue frame indicates the destination.

Last modified: 09 July 2024