IntelliJ IDEA
 
Get IntelliJ IDEA

Tutorial: Set value

Last modified: 23 October 2024

From this tutorial, you will learn how to use one of the most basic, but very useful debugger features: Set Value.

While debugging, you get the information about your variables and examine them in order to understand why a program behaves in a particular way. Other times, you would want to reproduce some bug, which depends on some variable. To do that, you would need this variable to hold a particular value.

Reproducing some conditions without modifying the program at runtime may be tedious and time-consuming, so most of the time you would benefit from setting the variable value right from the debugger.