diff options
-rw-r--r-- | server/main.lua | 11 | ||||
-rw-r--r-- | server/publish.lua | 5 |
2 files changed, 12 insertions, 4 deletions
diff --git a/server/main.lua b/server/main.lua index 6e8279ae..5c7272f1 100644 --- a/server/main.lua +++ b/server/main.lua @@ -10,9 +10,14 @@ log = require 'log' log.init(ROOT, ROOT / 'log' / 'test.log') log.info('Lua Lsp startup, root: ', ROOT) -local dbg = require 'debugger' -dbg:io 'listen:127.0.0.1:11411' -dbg:start() +local function tryDebugger() + local dbg = require 'debugger' + dbg:io 'listen:127.0.0.1:11411' + dbg:start() + log.info('Debugger startup, listen port: 11411') +end + +pcall(tryDebugger) require 'utility' require 'global_protect' diff --git a/server/publish.lua b/server/publish.lua index 2a0870b9..5871bbec 100644 --- a/server/publish.lua +++ b/server/publish.lua @@ -137,11 +137,14 @@ print(('复制了[%d]个文件'):format(count)) print('开始测试...') runTest(out / 'server') -print('删除测试文件...') +print('删除多余文件...') removeFiles(out) { ['server'] = { ['log'] = true, ['test'] = true, + ['bin'] = { + ['debugger.dll'] = true, + }, }, } |