From OpenSCADAWiki
Jump to: navigation, search

To generate the debug messages according the common debugging concept, you need to use the function mess_debug() with call it conditionally at the program source part:

  • the rarely invoked part — direct call to the function mess_debug(...);;
  • the often invoked part — conditional call if(mess_lev() == TMess::Debug) mess_debug(...);;
  • the critical to performance code part — wrapping to definition OSC_DEBUG: