diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-13 11:37:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-13 11:37:05 +0800 |
commit | ea14e06ff09bd1ddd574923d0fbd57958ff540b8 (patch) | |
tree | a1dca29b6d27aa2d3ec998fcbcc28a46464531a2 /server | |
parent | 16f36b7f5fdb68b9ea61ba02b6ab0e2343e6a9e8 (diff) | |
download | lua-language-server-ea14e06ff09bd1ddd574923d0fbd57958ff540b8.zip |
发布版没有debugger
Diffstat (limited to 'server')
-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, + }, }, } |