debug.Trace

From GMod Wiki

Jump to: navigation, search
Function
Syntax debug.Trace( )
Where is this used?
Description:
Traces the function calls backwards to find out what originally started the calls and where it went from there.
Returns: nil
Part of Library: Debug
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Debug.Trace]Debug.Trace [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the function and file call order.
Used onNewerShared.png
Code
debug.Trace()
Output
1: Line 21	"Trace"		includes/extensions/debug.lua
2: Line 222	"WriteTable"	includes/modules/saverestore.lua
3: Line 170	"WriteVar"	includes/modules/saverestore.lua
4: Line 259	"WriteTable"	includes/modules/saverestore.lua
5: Line 170	"WriteVar"	includes/modules/saverestore.lua
6: Line 259	"WriteTable"	includes/modules/saverestore.lua
7: Line 272	"Func"		includes/extensions/entity_networkvars.lua
8: Line 396	"(null)"	includes/modules/saverestore.lua.


Stub.pngThis article is a stub.
You can help the GMod Wiki by expanding it.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox