debug.sethook

From GMod Wiki

Revision as of 21:18, 1 February 2011 by Donkie (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax debug.sethook( Thread thread, Function hook, String mask, Integer count )
Where is this used?
Description:
Sets the debug hook for the specified thread, or the current thread if none is given. See the Lua manual for detailed information on the use of debug.sethook.
Returns: nil
Part of Library: Debug
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Debug.sethook]Debug.sethook [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionN/A
Used onNewerMissing.png
Code
LuaIco3.pngThis page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
OutputN/A

Additional Notes

As of the August 2, 2007 update to GMod, the debug hook facilities have been dedicated to running the Infinite Loop protection.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox