From OpenSCADAWiki
Jump to: navigation, search

To place debug messages, into common debugging concept, need to use the function mess_debug() with call it conditional by the program source part:

  • rarely invoked part: direct call to the function mess_debug(...);
  • offten invoked part: conditional call: if(mess_lev() == TMess::Debug) mess_debug(...);
  • critical to performance code parts: wrapped to definition OSC_DEBUG:
#ifdef OSC_DEBUG