Project 11 – Quick Tap (Open Honors)

Lesson Attachments

What is writeDebugStreamLine?

The writeDebugStreamLine command allows you to print anything you wish to the Debug Stream.  It can be very helpful when troubleshooting your code because it lets you know where in the code you have successfully reached.  It can also be used to print sensor readings taken at specific and precise moments.

The command literally means to write to the debug stream (a text document built and amended in real time) on a new line (so it doesn’t keep overwriting the same information).  You can access the Debug Stream by going to Robot – Debugger Windows – Debug Stream after downloading your code to your robot.  Below is an example of using the Debug Stream: