debug off by default
This commit is contained in:
parent
95bca26afe
commit
492da41dac
1 changed files with 2 additions and 2 deletions
4
main.lua
4
main.lua
|
|
@ -1,6 +1,6 @@
|
||||||
-- debug --
|
-- debug --
|
||||||
if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
|
if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
|
||||||
DEBUG = true
|
DEBUG = false -- enable with f10
|
||||||
local lldebugger = require('lldebugger')
|
local lldebugger = require('lldebugger')
|
||||||
lldebugger.start()
|
lldebugger.start()
|
||||||
---@diagnostic disable-next-line: undefined-field
|
---@diagnostic disable-next-line: undefined-field
|
||||||
|
|
@ -9,7 +9,7 @@ if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
|
||||||
local f = lldebugger.call(run, false, ...)
|
local f = lldebugger.call(run, false, ...)
|
||||||
return function(...) return lldebugger.call(f, false, ...) end
|
return function(...) return lldebugger.call(f, false, ...) end
|
||||||
end
|
end
|
||||||
else DEBUG = false end
|
end
|
||||||
print('debug:', DEBUG)
|
print('debug:', DEBUG)
|
||||||
|
|
||||||
-- libraries --
|
-- libraries --
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue