diff options
Diffstat (limited to 'server-beta/debugger.lua')
-rw-r--r-- | server-beta/debugger.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server-beta/debugger.lua b/server-beta/debugger.lua index cc304209..27cd9fe3 100644 --- a/server-beta/debugger.lua +++ b/server-beta/debugger.lua @@ -44,9 +44,12 @@ local function tryDebugger() local addr = "127.0.0.1:" .. port local dbg = loadfile(entry)('windows', root) dbg:start(addr) - --dbg:wait() log.debug('Debugger startup, listen port:', port) log.debug('Debugger args:', addr, root, path, cpath) + return dbg end -xpcall(tryDebugger, log.debug) +local suc, dbg = xpcall(tryDebugger, log.debug) +if suc then + return dbg +end |