
Now use the predefined ROBOTC functions- writeDebugStream() and writeDebugStreamLine() in your program to print out a message or the current value of a variable, in the debug stream window. These functionalities will be grayed-out initially, and are available once you run a program. You will now be able to see the Debug Stream functionality under Debugger Windows. You will now find that the number of options under the Robot menu and the functionalities available in Debugger Windows have increased.

To change the Basic user level in your ROBOTC– Click on the Window menu and under the Menu Level option, select the Super User functionality.

#Robotc free trial how to#
This page shows how to use the Debug Stream in ROBOTC. The Debug Stream is the most useful option out of the three and is not available to the Basic user, but is available to the Expert and Super users. Use the in-built Debug Stream functionality that helps by printing messages when you enter or exit loops and functions, or by printing the current value of a variable that you may have defined in the program.If you are using an LCD display (like in the MINDSTORMS NXT) then you can print out statements to the display from your code and by examining them find out the part of code that is being currently executed.Add tones and sounds to your program code, and from the sound determine which part of the code is being executed.

The 3 most common ways to do this in ROBOTC are: So you have ROBOTC installed on your computer and are ready to program your LEGO MINDSTORMS NXT, but you need a debugging technique to find possible run time errors in your program?
