std._debug 1.0 Reference

# Module `init`

Metamethods %section metamethods

## Functions

__call ([enable]) | Set the overall debug state.
__index (name) | Lazy loading of std._debug modules.

## Functions

__call ([enable])
  Set the overall debug state.

  ### Parameters:

  - enable bool or disable all debugging substates (optional)

  ### Returns:

  table states

  ### Usage:

      -- Enable all debugging substates
      local _debug = require 'std._debug'(true)

__index (name)
  Lazy loading of std._debug modules. Don't load everything on initial startup, wait until first attempt to access a submodule, and then load it on demand.

  ### Parameters:

  - name string submodule name

  ### Returns:

  table or nil

  the submodule that was loaded to satisfy the missing

      `name`, otherwise `nil` if nothing was found

  ### Usage:

      local version = require 'std._debug'.version

generated by LDoc 1.4.6 Last updated 2017-10-14 23:27:32