Debug Message Output
[Debugging Mechanisms]

Debug Message Output. More...

Modules


Detailed Description

Debug Message Output.

HEL Library provides an easy to use mechanism to output formatted debug messages, which are automatically turned off when you switch to release mode.

The Debug-Message-System supports no$gba and VisualBoy Advance Debug-Messages. The maximum supported debug message string length is 120 characters. If you pass a text that is longer than that, HEL Library will display an assertion screen and abort program execution (in debug mode). However, if you have a construct like below, where pszLongText points to a text that is longer than 120 characters, HEL does not display an assertion screen and it is very likely that memory gets overwritten at some random address and this leads into hard to find bugs:

HEL_DEBUG_MSG("%s", pszLongText);

As already mentioned, HEL Library actually supports No$gba and VisualBoy Advance Debug-Messages. To activate on of those, simply use hel_DebugSetMessageType.

See also:
Library Overview

Generated on Mon Apr 9 16:39:00 2007 for HEL Library by  doxygen 1.5.1