CLion
 
Get CLion
Join the CLion 2025.1 Early Access Program and try out new features before they are released! Find out more

Mute variables

Last modified: 11 February 2024

During a debug session, you can view variables in the Variables pane of the Debug tool window and inlined in your code.

When you step through the program, the values are re-calculated on each step. This may cause performance degradation, especially in case of large structures or arrays. But if you don't need to explore the variables on each step, you can only view them 'on demand' to avoid unnecessary calculations and improve the stepping performance. For this, use the Mute Variables option, and CLion will stop re-calculating values for every step, letting you load them only when needed.