diff options
author | sumneko <sumneko@hotmail.com> | 2019-06-10 10:11:39 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-06-10 10:11:39 +0800 |
commit | 8835d76031b453d0a3b8ca517f169a831b5a4abb (patch) | |
tree | feeea2a1286f957a2ac0b8e08fe8b5d655c54fae | |
parent | 3f139d12e8f66b30b6f4b9a47501b10cb111830d (diff) | |
download | lua-language-server-8835d76031b453d0a3b8ca517f169a831b5a4abb.zip |
更新调试器
-rw-r--r-- | .vscode/launch.json | 3 | ||||
-rw-r--r-- | server/debugger.lua | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index 8f33b52d..28f7773f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -29,8 +29,7 @@ "stopOnEntry": true, "sourceCoding": "utf8", "consoleCoding": "utf8", - "ip": "127.0.0.1", - "port": 11411 + "address": "127.0.0.1:11411" }, { "name": "编译", diff --git a/server/debugger.lua b/server/debugger.lua index c2e262b7..a2f674b8 100644 --- a/server/debugger.lua +++ b/server/debugger.lua @@ -46,7 +46,7 @@ local function tryDebugger() local addr = "127.0.0.1:" .. port local dbg = loadfile(entry)(rdebug, root, path, cpath) debug.getregistry()["lua-debug"] = dbg - dbg:start(addr, true) + dbg:start(addr) log.debug('Debugger startup, listen port:', port) log.debug('Debugger args:', addr, root, path, cpath) end |