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

Method stepIn

agent/debugger.ts:85–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 stepIn(): void {
86 const session = this.getPausedSession();
87 if (session === null || session.context === null) {
88 return;
89 }
90
91 const lr = this.getLinkRegister(session.context);
92 if (lr === null) {
93 log("[stalker] step-in requires lr", "yellow");
94 return;
95 }
96
97 if (!this.isCallInstruction(session.instruction)) {
98 log("[stalker] current instruction is not call-like; step-in falls back to s(1)", "yellow");
99 this.step(1);
100 return;
101 }
102
103 session.runMode = "step-in";
104 session.baseLr = lr;
105 session.targetLr = null;
106 session.targetPc = null;
107 session.autoBudget = MAX_SILENT_AUTO_STEPS;
108 session.autoStopReason = null;
109 log(`[stalker] step-in thread ${session.threadId} base-lr=${lr}`, "green");
110 session.semaphore.post();
111 }
112
113 stepOut(): void {
114 const session = this.getPausedSession();

Callers 1

index.tsFile · 0.80

Calls 6

getPausedSessionMethod · 0.95
getLinkRegisterMethod · 0.95
isCallInstructionMethod · 0.95
stepMethod · 0.95
logFunction · 0.85
postMethod · 0.80

Tested by

no test coverage detected