summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vscode/launch.json1
-rw-r--r--debugger.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 86004596..78055652 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -17,6 +17,7 @@
},
"arg": [
],
+ "luaVersion": "latest",
"consoleCoding": "utf8",
"sourceCoding": "utf8",
"outputCapture": [
diff --git a/debugger.lua b/debugger.lua
index c72ffaf6..0ae25aae 100644
--- a/debugger.lua
+++ b/debugger.lua
@@ -47,7 +47,7 @@ local function tryDebugger()
local root = debugPath
local addr = ("127.0.0.1:%d"):format(DBGPORT)
local dbg = loadfile(entry)()
- dbg:init { root = root }
+ dbg:init { root = root, latest = true }
dbg:start(addr)
log.debug('Debugger startup, listen port:', DBGPORT)
log.debug('Debugger args:', addr, root, path, cpath)