LuaPanda icon indicating copy to clipboard operation
LuaPanda copied to clipboard

[求助] LuaPanda不能停在红点断点 硬断点可以生效

Open BigMadDonkey opened this issue 9 months ago • 5 comments

Describe the bug 之前我用LuaHelper插件 + LuaPanda 3.2.0 在项目中进行调试,持续使用了1年左右,都十分正常(我在配置launch.json时 useCHookfalse所以跟VSCode的升级可能没关系)。最近发现在编辑器里插入的红点断点总是不生效,参照FAQ尝试用硬断点然后执行LuaPanda.testBreakpoint发现输出如图所示: image 并且硬断点有时会停在我们框架内扩展的可复用coroutine的逻辑附近而不是调用LuaPanda.BP()的位置。

之后尝试改用最新的LuaPanda插件 + LuaPanda3.3.1,但是红点断点仍然不生效,但在不生效位置加硬断点之后,LuaPanda.testBreakpoint输出变成下图的样子: image

Desktop (please complete the following information):

  • OS: macOS
  • VSCode v1.89.1
  • LuaPanda Version 3.2.0 and 3.3.1
  • Framework xlua

Additional context 其实我推测可能与项目框架内对coroutine的修改有关,但是我一时实在是看不出来,故想请教一下开发者,3.2.0版本testBreakpoint中formatted 路径正常(但还是停不到断点上),而LuaPanda3.3.1 formatted显示为coroutine,可能导致这种情况的原因是什么? 十分感谢!

BigMadDonkey avatar May 14 '24 08:05 BigMadDonkey