Debugging

When you "Debug" a piece of coding, you check it for errors and fix them.

You will need to do this when you try and run code on your mBot and it doesn't do what you are expecting it to.

You may also get an error message when you try to upload your code to the mBot.

The Debugging Process

Things to check


Debugging

Debugging Practice

Look at the code on these pages.

Don't forget - The wheels and motor not being tightly held in place might also cause the mBot to move in strange ways. You can always use the screw driver to tighten up the nuts and bolts that hold everything together.