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

只能调试一个lua文件 #558

Open
waryard opened this issue Aug 18, 2023 · 3 comments
Open

只能调试一个lua文件 #558

waryard opened this issue Aug 18, 2023 · 3 comments

Comments

@waryard
Copy link

waryard commented Aug 18, 2023

Environment(环境)

name version
IDEA version 2022.2.1
EmmyLua version 1.3.7.2
OS OSX 12.6.7,

What are the steps to reproduce this issue?(重现步骤?)

  1. 已经配置了.lua识别,可以跳转
  2. package.cpath dbg.tcpListen('localhost', 9966)已添加
  3. 只可以调试已添加dbg.tcpListen的lua文件,其他的lua文件不可以调试

What happens?(出现什么问题?)

只能调试一个lua文件

What were you expecting to happen?(期望?)

可以调试项目内所有的lua文件

Any logs, error output, etc?(有没有什么log, error输出?)

(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)
没有错误日志

Any other comments?(其它说明)

@CppCXY
Copy link
Member

CppCXY commented Aug 18, 2023

chunkname问题, 可能你的chunkname(chunkname不是modname, modname的标准形式是AAA.BBB.CCC)不符合标准的 AAAA/BBB/CCC的形式, 你可能需要在custom loader中修改chunkname

@waryard
Copy link
Author

waryard commented Aug 22, 2023

chunkname在哪里修改呢?

@CppCXY
Copy link
Member

CppCXY commented Aug 22, 2023

chunkname在哪里修改呢?

前面回答过了, 如果是xlua这样的就在custom loader, 如果不是需要自己去查代码, 比如lua_loadbuffer这样的接口

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