diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-10-19 16:56:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-10-19 16:56:48 +0800 |
commit | 74f24016f065ef900694cea9c04439908b808cc9 (patch) | |
tree | 1a356048ddb4f6bf9ddafaa5bd18705425f8079e | |
parent | 696fae86c9175cfc1b210c964b8efda85ed6421f (diff) | |
download | lua-language-server-74f24016f065ef900694cea9c04439908b808cc9.zip |
lua-beta 调试器端口号修改
-rw-r--r-- | .vscode/launch.json | 7 | ||||
-rw-r--r-- | server-beta/debugger.lua | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index fa39fb73..5b3577d4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -64,5 +64,12 @@ "sourceCoding": "utf8", "luaRuntime": "5.4 64bit" }, + { + "name": "附加-beta", + "type": "lua", + "request": "attach", + "stopOnEntry": true, + "address": "127.0.0.1:11412", + }, ] } diff --git a/server-beta/debugger.lua b/server-beta/debugger.lua index e8144de0..113fa687 100644 --- a/server-beta/debugger.lua +++ b/server-beta/debugger.lua @@ -41,7 +41,7 @@ local path = "/script/?.lua" local function tryDebugger() local entry = assert(package.searchpath('debugger', debugPath:string() .. path)) local root = debugPath:string() - local port = '11411' + local port = '11412' local addr = "127.0.0.1:" .. port local dbg = loadfile(entry)('windows', root) dbg:start(addr) |