Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing to the Console window while still having a Screen
#6
Code:
#define DEBUG
#ifdef DEBUG
#  define dprint(msg) open err for output as #24:print #24,"debug: ";msg:close #24
#else
#  define dprint(msg):
#endif
dprint("any debug messages")

If you have for example 100 Lines of debug messages in your code and all works you must remove it all for a final version.

only remove the first line #define DEBUG and all dprint() calls are removed from your code without to do it manualy.

Try it out and have fun.

Joshy
sorry about my english
Reply


Messages In This Thread
Writing to the Console window while still having a Screen - by d.j.peters - 12-13-2005, 07:41 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)