Learn Create Your Own Split Screen

Next Page

This simple example just displays a console message when the program starts, and another every time a timer event fires.

As you can see, console logging is pretty easy to use.

What you'll want to display on the console depends on what problem you're trying to solve.

Maybe you've got an if-statement that really should be happening, but seems not to be. You could log the values of the variables it depends on.

Or perhaps there's a loop that never seems to start or never seems to finish, even though you feel your code is correct.

A little bit of logging can really help show what's going on.