actboy168 / lua-debug

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

翻转客户端模式无法调试 #166

Closed fesily closed 2 years ago

fesily commented 2 years ago

翻转连接方式,vscode 配置

{
            "name": "attach ip121 ",
            "type": "lua",
            "request": "attach",
            "stopOnEntry": true,
            "client": false,
            "address": "127.0.0.1:4277",
            "outputCapture": [
            ]
        }

lua代码

 require "luadebug" : start {address="127.0.0.1:4277",client=true} :event "wait"

 local arr = {
    1}

print "ddd"

系统信息里socket已经链接上了,但是无法调试,无法断点,worker一直停在wait函数里面,KILL LUA进程,vscode调试器自动退出调试UI,这说明socket连接是没有问题的