northern-bites/nbites — Issue #227: make debug printing nicer
Author: oneamtu
Created: 2011-10-14 14:33:31+00:00
State: open

Also debug printing should be better, as I outlined in the class NaoManPreloader (which should be in the master soon), and namely that for debug statements we would have separate streams (so instead of cout << "stuff" we'd have debug_vision_out << "stuff"), and then based on whether a certain debug flag is out we switch debug_vision_out between being cout and being NullStream (NullStream will be in the master soon as well).

That way
#ifdef DEBUG_FLAG
cout << "foo" ;
#endif

becomes

debug_out << "foo";

Which is MUCH cleaner and nicer to read.

Colors might be nice as well.