debug.gethook

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

Lua functions

Topics