Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LuaJIT的hook没有tail call #148

Open
pilaoda opened this issue Apr 22, 2022 · 2 comments
Open

LuaJIT的hook没有tail call #148

pilaoda opened this issue Apr 22, 2022 · 2 comments

Comments

@pilaoda
Copy link

pilaoda commented Apr 22, 2022

https://stackoverflow.com/questions/38158473/luajit-cant-hook-tail-return

这个会导致 stepOverCounter 无法恢复为0,如果当前在进入尾调用函数上,step over会无法断点到下一行

@stuartwang
Copy link
Collaborator

感谢关注到这么细节的问题。
我自己在使用的时候也发现有跳步的问题,也就是运行到某个代码之后会因为 stepOverCounter 未清零导致stepover变成 continue。
这里可能需要仔细调一下,但目前工作比较忙,后面我抽空再处理下

@pilaoda
Copy link
Author

pilaoda commented Jul 9, 2022

我的解决办法是直接获取当前traceback的深度来对比,不过缺点是会牺牲效率,但应该也没其他好办法了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants