lua-debug icon indicating copy to clipboard operation
lua-debug copied to clipboard

如何设置远程调试?

Open zhuzongzhen opened this issue 6 years ago • 7 comments

My lua code is running in wsl, and using c to embed lua, how do I debug these lua code?

zhuzongzhen avatar Sep 21 '19 00:09 zhuzongzhen

我的vscode是在windowns下运行的,而我的lua代码是在wsl或远程linux中运行的,使用的都是.so的库,在调试lua代码时,能不能使用远程调试? 能不能提供个远程调试的示例?

zhuzongzhen avatar Sep 21 '19 00:09 zhuzongzhen

https://code.visualstudio.com/docs/remote/wsl

actboy168 avatar Sep 23 '19 02:09 actboy168

我尝试使用remote-wsl 和 remote-ssh, 调试lua,在设置好,F5启动调试,发现调试器闪退了。 不启用remote调试,在本机可以调试。 以下是截图 使用remote-ssh 启动调试,debuger闪退 使用remote-wsl

zhuzongzhen avatar Sep 28 '19 00:09 zhuzongzhen

缺少什么函数呢?我可以去安装。

zhuzongzhen avatar Sep 28 '19 12:09 zhuzongzhen

跟新到最新,使用wsl调试,还是会出现闪退,无法调试。

zhuzongzhen avatar Sep 29 '19 14:09 zhuzongzhen

你可以尝试自己编译

actboy168 avatar Sep 30 '19 08:09 actboy168

@actboy168 通过多次验证基本可以确定该插件不支持vscode的remote-ssh功能,作者可以参考下支持远程开发的文档:https://code.visualstudio.com/api/advanced-topics/remote-extensions image

DFVSQY avatar Oct 08 '19 02:10 DFVSQY