From c05f9427414ba7bbe61f8c6494d26d681c2edf58 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= <sumneko@hotmail.com>
Date: Fri, 5 Mar 2021 15:17:56 +0800
Subject: [PATCH] update debugger

---
 debugger.lua | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/debugger.lua b/debugger.lua
index 0ae25aaeb..1fb9a8c50 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
-- 
GitLab