Debug

From GMod Wiki

Revision as of 17:16, 10 February 2011 by garry :D (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

"This library provides the functionality of the debug interface to Lua programs. You should exert care when using this library. The functions provided here should be used exclusively for debugging and similar tasks, such as profiling. Please resist the temptation to use them as a usual programming tool: they can be very slow. Moreover, several of these functions violate some assumptions about Lua code (e.g., that variables local to a function cannot be accessed from outside or that userdata metatables cannot be changed by Lua code) and therefore can compromise otherwise secure code.

All functions in this library are provided inside the debug table. All functions that operate over a thread have an optional first argument which is the thread to operate over. The default is always the current thread." -Lua manual

Library Functions

NewerShared.png debug.debug
NewerShared.png debug.getfenv
NewerShared.png debug.gethook
NewerShared.png debug.getinfo
NewerShared.png debug.getlocal
NewerShared.png debug.getmetatable
NewerShared.png debug.getregistry
NewerShared.png debug.getupvalue
NewerShared.png debug.setfenv
NewerShared.png debug.sethook
NewerShared.png debug.setlocal
NewerShared.png debug.setmetatable
NewerShared.png debug.setupvalue
NewerShared.png debug.Trace
NewerShared.png debug.traceback

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox