O'Reilly logo

Going to War: Creating Computer War Games by Jason Darby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Debugger

When you run your game in MMF2, you may notice a small bar open on the top left corner of your monitor. This is the Debugger window and its initial job is to tell you how many objects your game has and how much memory it is using. Every program you make contains data: the information stored in an array or the alterable values of each of the terrain tiles. All of this information is essential if you wish to check to see if the values are correct and then any fix issues with your war game if they are not. Using the debugger can help you track down difficult to find bugs in your code, which you may have inadvertently programmed incorrectly.

Starting and Using the Debugger

To make the debugger start, you need to have a program running ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required