O'Reilly logo

Game Programming Gems 8 by Adam Lake

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 4.7. A More Informative Error Log Generator

J.L. Raza and Peter Iliev Jr.

,

Programmers commonly create error logging functions to aid in debugging during development. Usually, these functions print out error messages onscreen or to a log file. Although it is functional, the error message is only as good as the programmer’s insight into how the problem could have occurred. In other words, a one-line message is not always enough to help fix the bug. You may need to know which function passed in bad data or how the program got into this bad state, and that is what this gem seeks to help with.

In this gem, we’ll present a new error logging function that automatically generates useful information ...

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