HolyLib Wiki

debug

debug

This library extends Gmod's debug library.

Recently Added

This was recently added in version (0.8 - DEV).

Methods

boolean debug.isblocked( function func )
Checks if the function is set to be inaccessable by any debug function.
boolean debug.isreadonly( table tbl )
Checks if the table is set to be read only.
debug.setblocked( function func )
Marks the function to be inaccessable by any debug function & setfenv & getfenv.
This function is used internally for the FFI Scripts executed by HolyLib to prevent access to FFI functions when their disabled. Once set this intentionally cannot be reverted.
debug.setreadonly( table tbl, boolean readOnly = false )
Forces a table to become read only, meaning it cannot be modified in any way.
This readonly logic was added into our LuaJIT build and does not exist in the normal LuaJIT.