summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-06-10 10:11:39 +0800
committersumneko <sumneko@hotmail.com>2019-06-10 10:11:39 +0800
commit8835d76031b453d0a3b8ca517f169a831b5a4abb (patch)
treefeeea2a1286f957a2ac0b8e08fe8b5d655c54fae
parent3f139d12e8f66b30b6f4b9a47501b10cb111830d (diff)
downloadlua-language-server-8835d76031b453d0a3b8ca517f169a831b5a4abb.zip
更新调试器
-rw-r--r--.vscode/launch.json3
-rw-r--r--server/debugger.lua2
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