summaryrefslogtreecommitdiff
path: root/server/main.lua
diff options
context:
space:
mode:
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'