actboy168 / lua-debug

Lua Debug Adapter for Visual Studio Code
MIT License
431 stars 93 forks source link

support luajit cdata var #215

Closed fesily closed 1 year ago

actboy168 commented 1 year ago

cdata_visitor.lua只在luajit里有效的话,应该先检查版本是luajit才加载它。

此外,我觉得cdata_visitor.lua里的所有函数都可以合并成一个,然后代码写在evaluate.lua就可以了。

fesily commented 1 year ago

循环引用, evaluate引用了variables

actboy168 commented 1 year ago

循环引用, evaluate引用了variables

我已经把evaluate.lua拆分为evaluate.lua和eval.lua。现在应该不会有循环引用了。

fesily commented 1 year ago

...debug-1.61.0-darwin-arm64/script/backend/worker/eval.lua:37: attempt to compare nil with number

actboy168 commented 1 year ago

...debug-1.61.0-darwin-arm64/script/backend/worker/eval.lua:37: attempt to compare nil with number

1b0ed9b62fc22f3476071e64cfca261227a5da5f

actboy168 commented 1 year ago

看起来多了很多代码风格的变更

fesily commented 1 year ago

看起来多了很多代码风格的变更

自动format了, 你该修改一下.editorconfig,我拿lua-language-server格式化的

actboy168 commented 1 year ago

@fesily 目前两次rdebug.load之间没有任何关联,我看你在ffi-reflect做了cache,它应该不会有任何作用,所以你应该在外面做缓存,或者把缓存去了。