actboy168 / lua-debug

Lua Debug Adapter for Visual Studio Code
MIT License
435 stars 94 forks source link

create remotedebug.so for luajit #157

Closed fesily closed 2 years ago

fesily commented 2 years ago

156

fesily commented 2 years ago

我发现读取table是错误的,只读取了一部分,我再修改一下

fesily commented 2 years ago

我试了一下windows,完全编译不了,我不清楚怎么链接luajit的lib库,luamake怎么设置lib库路径呢.

actboy168 commented 2 years ago

你写了deps,luamake会帮你link

fesily commented 2 years ago

我看代码是必须要用luamake编译了一个库,然后再链接进来,不能直接链接一个现有的库吗.

actboy168 commented 2 years ago

除了系统的lib,不应该link其他的库

fesily commented 2 years ago

luajit有make文件 主要还有预编译头文件的过程,luamake有写shell的接口吗

actboy168 commented 2 years ago

https://github.com/actboy168/lua-debug/blob/master/make.lua#L20-L22

fesily commented 2 years ago

BUG

fesily commented 2 years ago

我看lm:build没有读取deps参数,我需要先预生成文件后在进行编译,这个要如何做呢

好吧可能我看错了 试了下可用

fesily commented 2 years ago

我直接去调用生成ninja文件是正常的,而且我查看了一下ninja -t graph 依赖图也是正确的

actboy168 commented 2 years ago

luamake使用的问题,可以去luamake的issue讨论。 或者你可以参考这个编译luajit的脚本 https://gist.github.com/actboy168/9f48870f045acc772d707eae474bc5d5

fesily commented 2 years ago

行,原来你已经写过了

fesily commented 2 years ago

现在就差windows下编译没测试过了.我直接把你写的make.lua放进去了

fesily commented 2 years ago

就差linux-x64下编译没试过了.没这个机子只能靠你帮忙测试一下了

对luajit原程序进行exception和thread相关的修改还没结束.因为他这个hookmask的高4位被内部所使用了

fesily commented 2 years ago
fesily commented 2 years ago