The reason the Local Variables debug window isn't showing the local variables is because when the code running in a non-suspended state (running in real time), it's difficult to know which local variables (on stack) are valid at any given time. This is inline with all modern IDE's. You can, however, view the values of the variables if you suspend the program (using the Debugger window).
Alternatively, you can view the values in real time by making the variables global (which bypasses the problem of the IDE having to guess at which variables are valid at any point in time). You can also use the Debug Stream debugger window coupled with the 'writeDebugStream' commands to monitor multiple variables in the program.
For example, take a look at the following code. Integers a, b, and c can be viewed at any point because they are global; x, y, and z however, will show their values when the program is suspended. The variable 'z' is having its value printed to the Debug Stream debugger window using the 'writeDebugStreamLine' command, with a 50 millisecond pause to ensure the Debugger Stream window has enough time to write each value:
Check out our Blog
! And our Facebook page
Need help? Take a look at our updated help documentation
and the ROBOTC Forums.