Answer:
Use Print statement
Explanation:
The most common way to check this would be to use the print statement in whatever language you are using to have the value of that variable print to the screen/console. That way you know exactly what value your variable has stored within it at the moment that the print statement runs. Each language has a similar but different print statement like so...
Python: print(variable)
Java: System.out.println(variable);