Module: gears.debug

Info:

  • Copyright: 2010 Uli Schlachter
  • Author: Uli Schlachter

Static module functions

gears.debug.dump_return (data, tag[, depth]) Inspect the value in data.
gears.debug.dump (data, tag[, depth]) Print the table (or any other value) to the console.
gears.debug.print_warning (message) Print an warning message
gears.debug.print_error (message) Print an error message
gears.debug.deprecate ([see], args) Display a deprecation notice, but only once per traceback.
gears.debug.deprecate_class (fallback, old_name, new_name) Create a class proxy with deprecation messages.


Static module functions

gears.debug.dump_return (data, tag[, depth])
Inspect the value in data.

Parameters:

  • data Value to inspect.
  • tag The name of the value.
  • depth int Depth of recursion. (optional)

Returns:

    string A string that contains the expanded value of data.
gears.debug.dump (data, tag[, depth])
Print the table (or any other value) to the console.

Parameters:

  • data Table to print.
  • tag The name of the table.
  • depth int Depth of recursion. (optional)
gears.debug.print_warning (message)
Print an warning message

Parameters:

  • message string The warning message to print.
gears.debug.print_error (message)
Print an error message

Parameters:

  • message string The error message to print.
gears.debug.deprecate ([see], args)
Display a deprecation notice, but only once per traceback.

This function also emits the debug::deprecate signal on the awesome global object.

Parameters:

  • see The message to a new method / function to use. (optional)
  • args Extra arguments
    • raw boolean Print the message as-is without the automatic context
    • deprecated_in integer Print the message only when Awesome’s version is equal to or greater than deprecated_in.
gears.debug.deprecate_class (fallback, old_name, new_name)
Create a class proxy with deprecation messages. This is useful when a class has moved somewhere else.

Parameters:

  • fallback table The new class
  • old_name string The old class name
  • new_name string The new class name

Returns:

    table A proxy class.
generated by LDoc 1.4.6 Last updated 2030-01-01 00:00:00