diff options
-rw-r--r-- | debugger.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/debugger.lua b/debugger.lua index 0ae25aae..1fb9a8c5 100644 --- a/debugger.lua +++ b/debugger.lua @@ -46,9 +46,11 @@ 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)() - dbg:init { root = root, latest = true } - dbg:start(addr) + local dbg = loadfile(entry)(root) + dbg:start { + address = addr, + latest = true, + } log.debug('Debugger startup, listen port:', DBGPORT) log.debug('Debugger args:', addr, root, path, cpath) if DBGWAIT then |