O'Reilly logo

Introduction to Game Design, Prototyping, and Development: From Concept to Playable Game with Unity and C#, 2nd Edition by Jeremy Gibson Bond

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

CHAPTER 25

DEBUGGING

To the uninitiated, debugging can seem somewhat like a black art. On the contrary, it's actually one of the best skills you can have as a developer—though it's rarely taught to novice coders, which I think is a tragic missed opportunity. All beginning coders make mistakes, and knowing about debugging enables you to find and correct those mistakes much faster than just staring at the code and hoping the bug will reveal itself.

By the end of this chapter, you'll understand the difference between a compile-time error and a runtime error, you'll know how to set breakpoints in your code, and you'll know how to step through the lines of your program one at a time to help you root out hard-to-find bugs.

Getting Started with Debugging ...

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