summaryrefslogtreecommitdiff
path: root/server/main.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-06-05 11:15:49 +0800
committersumneko <sumneko@hotmail.com>2019-06-05 11:15:49 +0800
commitda83f37c216757814935f4deb313c9f066880996 (patch)
treec8828ddb57d63df9f8b5000c172e46ea376f02f6 /server/main.lua
parent0148fa046059f8963fc2f2aec47979ce27914eaf (diff)
downloadlua-language-server-da83f37c216757814935f4deb313c9f066880996.zip
启动调试器
Diffstat (limited to 'server/main.lua')
-rw-r--r--server/main.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/main.lua b/server/main.lua
index c9b51239..d1673836 100644
--- a/server/main.lua
+++ b/server/main.lua
@@ -19,9 +19,10 @@ collectgarbage("setstepmul", 1000)
log = require 'log'
log.init(ROOT, ROOT / 'log' / 'service.log')
log.info('Lua Lsp startup, root: ', ROOT)
+log.debug('ROOT:', ROOT:string())
ac = {}
---xpcall(dofile, log.debug, rootPath .. 'debugger.lua')
+xpcall(dofile, log.debug, rootPath .. 'debugger.lua')
require 'utility'
require 'global_protect'
local service = require 'service'