MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / HookDebugLog

Function HookDebugLog

Il2cppHook/_Ufunc.js:3499–3511  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3497Object.defineProperty(exports, "__esModule", { value: true });
3498exports.HookDebugLog = void 0;
3499const HookDebugLog = () => {
3500 let addr_Log = find_method("UnityEngine.CoreModule", "Logger", "Log", 2, true);
3501 LOGD("[*] Hook : UnityEngine.CoreModule.Logger.Log : " + addr_Log);
3502 A(addr_Log, (args, ctx) => {
3503 LOGG(`\n[*] Logger.LOG('${args[1]}' , '${readU16(args[2])}') <--- LR : ${checkCtx(ctx, "LR")}`);
3504 });
3505 let addr_LogException = Il2Cpp.Api.Debug.LogException_2;
3506 LOGD("[*] Hook : UnityEngine.CoreModule.Debug.LogException : " + addr_LogException);
3507 A(addr_LogException, (args, ctx) => {
3508 let retStr = callFunction(find_method("mscorlib", "Exception", "ToString", 0, true), args[0]);
3509 LOGG(`\n[*] Logger.LOG('${readU16(retStr)}') <--- LR : ${checkCtx(ctx, "LR")}`);
3510 });
3511};
3512exports.HookDebugLog = HookDebugLog;
3513globalThis.HookDebugLog = HookDebugLog;
3514},{}],42:[function(require,module,exports){

Callers

nothing calls this directly

Calls 5

LOGDFunction · 0.70
LOGGFunction · 0.70
readU16Function · 0.70
checkCtxFunction · 0.70
callFunctionFunction · 0.70

Tested by

no test coverage detected