From ea14e06ff09bd1ddd574923d0fbd57958ff540b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 13 Dec 2018 11:37:05 +0800 Subject: =?UTF-8?q?=E5=8F=91=E5=B8=83=E7=89=88=E6=B2=A1=E6=9C=89debugger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/main.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'server/main.lua') 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' -- cgit v1.2.3