MCPcopy Create free account
hub / github.com/axhlzy/FridaDebugger / onEnter

Function onEnter

scripts/function-stalker.js:306–320  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

304 try {
305 const h = Interceptor.attach(addr, {
306 onEnter(args) {
307 if (CONFIG.maxCalls && callsSeen >= CONFIG.maxCalls) return;
308 callsSeen++;
309 const tid = Process.getCurrentThreadId();
310 let argStr = "";
311 if (CONFIG.logArgs > 0) {
312 const parts = [];
313 for (let i = 0; i < CONFIG.logArgs; i++) {
314 try { parts.push(`a${i}=${args[i]}`); } catch (e) {}
315 }
316 argStr = " " + parts.join(" ");
317 }
318 console.log(`${C.green}[call+]${C.reset} ${label} ${C.dim}#${tid} @+${tms()}ms${C.reset}${C.dim}${argStr}${C.reset}`);
319 beginFollow(tid, scope);
320 },
321 onLeave(retval) {
322 const tid = Process.getCurrentThreadId();
323 const st = endFollow(tid);

Callers

nothing calls this directly

Calls 2

beginFollowFunction · 0.85
tmsFunction · 0.70

Tested by

no test coverage detected