

Note:- A message must be at most 19 characters long in ROBOTC. An example code showing how to write variables and messages to Debug Stream is shown here. The writeDebugStream function writes a string, passed as an argument to the function, to the debug stream while the writeDebugStreamLine function writes the string to the debug stream and then goes to a new line. 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. 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.

