gmcl_debug
Fuck it why not, this module re-implements all of the removed debug functions. Release coming soon

https://www.virustotal.com/en/file/8...is/1500063380/
https://malwr.com/submission/status/...JhMDkxZjYxNGU/
https://virusscan.jotti.org/en-US/fi...job/ruxmlnti04


Code:
require("debug")
print(debug.setupvalue)
local function my_isfunction( f )
return type( f ) == "function" or f == "coolguy"
end
print( debug.setupvalue( hook.Add, 1, my_isfunction ) )
print(debug.upvalueid)
print( type( debug.upvalueid( hook.Add, 1 ) ) )
print(debug.upvaluejoin)
print(debug.setlocal)
local var1 = "Luke, I am not your father."
local var2 = "PMFPMF"
( function()
print( "Getting the locals now!" )
PrintTable( { debug.getlocal( 2, 1 ) } )
PrintTable( { debug.getlocal( 2, 2 ) } )
print( "\nSetting the locals now!" )
print( debug.setlocal( 2, 1, "I'm actually your mother." ) )
print( debug.setlocal( 2, 2, "Chemo-chi" ) )
print( debug.setlocal( 2, 3, "nil should be returned here!" ) )
print( "\nHere are the locals after being set!" )
PrintTable( { debug.getlocal( 2, 1 ) } )
PrintTable( { debug.getlocal( 2, 2 ) } )
end )()
https://malwr.com/submission/status/...JhMDkxZjYxNGU/
https://virusscan.jotti.org/en-US/fi...job/ruxmlnti04

