DI-Guy Lua AI SDK
 All Classes Files Functions Variables Groups Pages
debug Class Reference

Lua's built in debugging library. More...

Static Public Member Functions

static debug ()
 enters interactive debug mode, line with only "cont" terminates More...
 
static gethook ()
 returns current hook function, hook mask, hook count More...
 
static getinfo (function[, what])
 returns table with information about a function More...
 
static getlocal (level, local)
 returns name and value of local variable with index local at stack level More...
 
static getupvalue (func, up)
 returns name and value of upvalue with index up of function func More...
 
static sethook (hook, mask[, count])
 sets given function as a hook, mask="[crl]" More...
 
static setlocal (level, local, value)
 sets local variable with index local at stack level with value More...
 
static setupvalue (func, up, value)
 sets upvalue with index up of function func with value More...
 
static traceback ([message])
 returns a string with a traceback of the call stack More...
 

Detailed Description

Lua's built in debugging library.

Constructor & Destructor Documentation

static debug::debug ( )
static

enters interactive debug mode, line with only "cont" terminates

Member Function Documentation

static debug::gethook ( )
static

returns current hook function, hook mask, hook count

static debug::getinfo ( function  [, what])
static

returns table with information about a function

static debug::getlocal ( level  ,
local   
)
static

returns name and value of local variable with index local at stack level

static debug::getupvalue ( func  ,
up   
)
static

returns name and value of upvalue with index up of function func

static debug::sethook ( hook  ,
mask  [, count] 
)
static

sets given function as a hook, mask="[crl]"

static debug::setlocal ( level  ,
local  ,
value   
)
static

sets local variable with index local at stack level with value

static debug::setupvalue ( func  ,
up  ,
value   
)
static

sets upvalue with index up of function func with value

static debug::traceback ( )
static

returns a string with a traceback of the call stack


The documentation for this class was generated from the following file: