Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Gamemaker Essentials

You're reading from   Gamemaker Essentials Learn all the essential skills of GameMaker: Studio and start making your own impressive games with ease

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781784396121
Length 154 pages
Edition 1st Edition
Arrow right icon
Toc

The GameMaker debugger


GameMaker actually has a debugger built into it that runs alongside the game as it's being tested. To run a game in debug mode, click on the red test play button instead of the green one .

When running the game in this mode, the game will start as normal. The difference is that the GameMaker debugger will also start and automatically connect to your game.

The debugger will look something like this:

Using the debugger window, we can see pretty much everything the game is doing.

We can also see the source code of the game when it runs and add break points on the fly. A break point is a point where the game will pause on a certain line. These are often seen, for example, after medium to large changes during a game so that the programmer can see the result clearly. We can have the game step through the code and watch as each line is executed.

If the source code is not already showing, click on the gray close button at the top-right corner of the current form to close it .

Then...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime