Class Debug

Description

This class provides wrapper for common debugging functions. It helps finding bugs by allowing direct manipulation of the debug console.

Debug:printf("The result of 1 + 1 = %d", 1 + 1);

Members

Debug:clear

  • in void
  • out void
clear the debug console.

Debug:clear();

THIS FUNCTION IS UNSTABLE.


Debug:hide

  • in void
  • out void
hide the debug console.

example:

Debug:hide();

Debug:printf

  • in string fmt
  • out string
works just like the regular C printf excepts that all text strings go to the debug console.

Debug:printf("1 + 1 = %d", 2);

Debug:show

  • in void
  • out void
show the debug console.

Debug:show();