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

关于在5.4下使用luapanda #167

Closed
stuartwang opened this issue Jul 8, 2023 · 0 comments
Closed

关于在5.4下使用luapanda #167

stuartwang opened this issue Jul 8, 2023 · 0 comments

Comments

@stuartwang
Copy link
Collaborator

stuartwang commented Jul 8, 2023

更新 3.3.1, 已内置5.4支持库,无需手动操作,以下仅做记录

最近测试了5.4下luapanda的使用,发现并修复了一些问题。
如期望在5.4下使用luapanda, 首先注意luasocket需要5.4对应版本,否则会无法建立连接。luascoket源码支持5.4,可以自己编译,也可以用我编译的二进制库
https://github.com/Tencent/LuaPanda/tree/dev/luasocketBin/504
完成以上步骤后,使用luapanda的luahook是可以进行调试的,如果对调试时性能没有强诉求,到这里就可以正常用了。关于有同学反馈5.4下chook用不了的问题,我们也定位了原因:在5.4.6版本中发现使用 lua_getinfo(L, "Slf", ar) 接口取到的行号不对,预计这是lua5.4的bug, 后面应该会修复。对此我们也重新编译库做了兼容。具体修复办法

  1. 删除 luapanda.lua 框中的代码,放开5.4使用plibdebug库
企业微信截图_1688613446427
  1. 替换5.4库到插件目录下
    5.4 plibdebug位置:https://github.com/Tencent/LuaPanda/tree/dev/Debugger/debugger_lib/plugins
    替换到插件目录下503文件夹下,比如
    win: C:\Users\YOURNAME.vscode\extensions\stuartwang.luapanda-3.2.0\Debugger\debugger_lib\plugins\win\x86_64\503
    mac: /Users/YOURNAME/.vscode/extensions/stuartwang.luapanda-3.2.0/Debugger/debugger_lib/plugins/mac/x86_64/503
    就可以使用了
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

1 participant