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

update debugger

parent 76bc34ec
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,8 @@ local function tryDebugger() ...@@ -46,7 +46,8 @@ local function tryDebugger()
local entry = assert(package.searchpath('debugger', debugPath .. path)) local entry = assert(package.searchpath('debugger', debugPath .. path))
local root = debugPath local root = debugPath
local addr = ("127.0.0.1:%d"):format(DBGPORT) local addr = ("127.0.0.1:%d"):format(DBGPORT)
local dbg = loadfile(entry)(root) local dbg = loadfile(entry)()
dbg:init { root = root }
dbg:start(addr) dbg:start(addr)
log.debug('Debugger startup, listen port:', DBGPORT) log.debug('Debugger startup, listen port:', DBGPORT)
log.debug('Debugger args:', addr, root, path, cpath) log.debug('Debugger args:', addr, root, path, cpath)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment