You can inspect the values of both local variables (declared in a method) and class static variables in the debugger.
You can display class-level variables (static variables) in the Debugger window and inspect their values. For more information, see the debugger online Help.
You can inspect the values of local variables in a method as you step through the code, to better understand what is happening.