summaryrefslogtreecommitdiff
path: root/server/main.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-13 11:37:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-13 11:37:05 +0800
commitea14e06ff09bd1ddd574923d0fbd57958ff540b8 (patch)
treea1dca29b6d27aa2d3ec998fcbcc28a46464531a2 /server/main.lua
parent16f36b7f5fdb68b9ea61ba02b6ab0e2343e6a9e8 (diff)
downloadlua-language-server-ea14e06ff09bd1ddd574923d0fbd57958ff540b8.zip
发布版没有debugger
Diffstat (limited to 'server/main.lua')
-rw-r--r--server/main.lua11
1 files changed, 8 insertions, 3 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'