LuaPanda
LuaPanda copied to clipboard
调试器没有找到文件 chunk.lua.txt
Describe the bug 调试器没有找到文件 chunk.lua.txt 。 请检查launch.json文件中lua后缀是否配置正确, 以及VSCode打开的工程是否正确 影响单步调试. To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows
- VsCode Version 1.65.1
- LuaPanda Version v3.2.0
- Framework Xlua
- Other information about your environment.
Additional context Add any other context about the problem here.
可以按以下步骤试下:
- 确认下项目中是否存在chunk.lua.txt文件,如果文件不存在可能是lua开发框架(xlua等)的内部文件,或者把 dobuffer 时把文件名传为了chunk, 导致调试器做了错误识别,这种情况忽略就行
- 如果文件存在,把鼠标移到 调试器没有找到文件 这个提示页面的标签上,可以看到调试器收到的chunk.lua.txt路径和实际文件路径。把这个路径和文件实际路径发出来,我看下原因。这种情况要么是没开自动路径,要么是调试器存在bug 自动路径的设置参考 https://github.com/Tencent/LuaPanda/blob/master/Docs/Manual/launch-json-introduction.md