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

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

Last modified 6 years ago Last modified on 09/26/18 07:23:39
Note: See TracWiki for help on using the wiki.