wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Debug/DEBUG_MSG

Version 1 (modified by Don Wilson, 6 years ago) ( diff )

--

DEBUG_MSG

Display a message on the serial or telnet console

DEBUG_MSG(fmt, …)

Parameters

  • fmt - message or format to display
  • … - variable parameters for message

Return Value

  • void - no return value

Remarks

Similar to using printf for debug message but output messages will only be compiled into debug build. Release builds will not compile in the message so there is no overhead for release build.

Examples

   int i;
   for(i = 0; i < 3; i++)
   {
      DEBUG_MSG("About to do something here i = %d\r\n", i);
      // Do something
   }

See Also

Note: See TracWiki for help on using the wiki.