Debugging
Just because code compiles, however, doesn't mean it's going to work. There are a lot of things that can go wrong that the compiler won't complain about, but will break your game nonetheless. In this section of the chapter,we're going to talk about some debugging techniques you can use to figure out why the code isn't doing what you want it to do. We'll also keep an eye on the log to catch and fix any errors that happen while the game is running.
Accessed none
By far the most common problem you will run into while debugging your code is the Accessed None. It is also the easiest to avoid, as long as you make no assumptions about Actor variables in your code. Let's take a look.