Summary
Returns the current hook settings
Prototype
f, mask, count = debug.gethook (thread)
Description
Returns the current hook settings as three values:
See debug.sethook for more details.
The thread argument is optional and defaults to the current thread.
f, mask, count = debug.gethook ()
print (f) --> nil
print (mask) --> ""
print (count) --> 0
See Also ...
Lua functions
debug.debug - Enters interactive debugging
debug.getfenv - Returns the environment of an object
debug.getinfo - Returns a table with information about a function
debug.getlocal - Returns name and value of a local variable
debug.getmetatable - Returns the metatable of the given object
debug.getregistry - Returns the registry table
debug.getupvalue - Returns the name and value of an upvalue
debug.setfenv - Sets the environment of an object
debug.sethook - Sets a debug hook function
debug.setlocal - Sets the value of the local variable
debug.setmetatable - Sets the metatable for an object
debug.setupvalue - Sets an upvalue for a function
debug.traceback - Returns a string with a traceback of the stack call
Topics
Lua base functions
Lua bc (big number) functions
Lua bit manipulation functions
Lua coroutine functions
Lua debug functions
Lua io functions
Lua math functions
Lua os functions
Lua package functions
Lua PCRE regular expression functions
Lua script extensions
Lua string functions
Lua syntax
Lua table functions
Lua utilities
Scripting
Scripting callbacks - plugins
(Help topic: lua=debug.gethook)