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

Function GetStackTraceN

Il2cppHook/_Ufunc.js:9036–9041  ·  view source on GitHub ↗
(ctx, level = 6)

Source from the content-addressed store, hash-verified

9034var GetStackTrace = () => Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Throwable").$new());
9035exports.GetStackTrace = GetStackTrace;
9036var GetStackTraceN = (ctx, level = 6) => {
9037 return Thread.backtrace(ctx, Backtracer.FUZZY)
9038 .slice(0, level)
9039 .map(frame => DebugSymbol.fromAddress(frame))
9040 .join("\n");
9041};
9042exports.GetStackTraceN = GetStackTraceN;
9043globalThis.PrintStackTrace = PrintStackTrace;
9044globalThis.PrintStackTraceN = PrintStackTraceN;

Callers 2

InterceptorGetFunctionsFunction · 0.70
InterceptorSetFunctionsFunction · 0.70

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected