Skip to content

Commit 0d0d6b3

Browse files
authored
Merge pull request #74 from mxyf/repair-stepIn
StepIn,相同文件行有概率导致程序崩溃
2 parents 06fb007 + 53ccb43 commit 0d0d6b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

emmy_debugger/src/debugger/hook_state.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ void HookStateStepIn::ProcessHook(std::shared_ptr<Debugger> debugger, lua_State*
9898
UpdateStackLevel(debugger, L, ar);
9999
if (getDebugEvent(ar) == LUA_HOOKLINE)
100100
{
101+
lua_getinfo(L, "nSl", ar);
101102
auto currentLine = getDebugCurrentLine(ar);
102103
auto source = getDebugSource(ar);
103104
if(currentLine != line || file != source)

0 commit comments

Comments
 (0)