Skip to content
Snippets Groups Projects
Commit c05f9427 authored by 最萌小汐's avatar 最萌小汐
Browse files

update debugger

parent 45cd0bfd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment