summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-10-11 10:58:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-10-11 10:58:02 +0800
commit333d047365bae2fbe5b7b1147fad6aee82e4c8e6 (patch)
tree839a49558751e7b962414ba73e9fd528174c318e
parent9f54935bc1447c07a29a3fc4357a0dcbafd36a37 (diff)
downloadlua-language-server-333d047365bae2fbe5b7b1147fad6aee82e4c8e6.zip
support `Lua Debug 2.0.0`
-rw-r--r--debugger.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/debugger.lua b/debugger.lua
index db5b2d5d..49aedaaa 100644
--- a/debugger.lua
+++ b/debugger.lua
@@ -51,7 +51,7 @@ local function tryDebugger()
local entry = assert(package.searchpath('debugger', debugPath .. path))
local root = debugPath
local addr = ("127.0.0.1:%d"):format(DBGPORT)
- local dbg = loadfile(entry)(root)
+ local dbg = loadfile(entry)(entry)
dbg:start {
address = addr,
}