gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Debugging with BoycotAdvance and VC++6.0

#3393 - J - Mon Feb 24, 2003 12:27 am

Kind of new at this, but my assignment involves creating a logging system for debugging purposes.

What is the best way to do this?
TCP?
GDB?
???

Working in a windows environment, and would like to ouput logging to file if possible.

Please reply asap. Any suggestions appreciated.
Thanks.

#3414 - animension - Mon Feb 24, 2003 11:04 am

VisualboyAdvance SDL version has a console for text output to screen, very useful for debuggin purposes. It's slow, but works well if you wrap each call that uses it with a preprocessor directive that checks to see if you are building with debugging turned on like so:

Code:

// Some where in one of your main headers:
#define DEBUG 1 // set to 0 if you want to turn it off
...
// Then in the actual code you do:
#if DEBUG
blah blah blah // output something to console
#endif


For specifics, consult the VBA SDL manual. Also the HAM dev kit has functions for outputting to console, as well as GDB debugger, so if you don't want to learn the process VBA SDL version uses to output to screen you can just use that.

Cheers.
_________________
"Beer is proof that God loves us and wants us to be happy."
-- Benjamin Franklin