debugging

What happened? To put it simply, this program has a bug. A bug is a program error. Debugging is the process of finding and fixing errors. Like every programmer, you’ll spend a lot of your programming time debugging. Fixing a bug can sometimes be a frustrating process, but it can also be incredibly rewarding to track down and solve a difficult problem. Think of it as solving a puzzle, and remember that you should always have fun!

Of course, some puzzles are easier to solve than others. For example, most people would agree that a Rubik’s Cube is a fairly complex puzzle, but even it can be solved by following a simple set of rules (a quick Internet search for Rubik’s Cube Solver will lead you to a list of solutions).

Like a Rubik’s Cube, ...

Get The Art of LEGO MINDSTORMS NXT-G Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.