add debugging

This commit is contained in:
yuki 2025-11-07 22:54:10 -03:00
parent 1db165a12b
commit 7845a95ac4
2 changed files with 38 additions and 1 deletions

View file

@ -4,5 +4,37 @@
"path": "."
}
],
"settings": {}
"settings": {},
"launch": {
"version": "0.2.0",
"configurations": [
{
"type": "lua-local",
"request": "launch",
"name": "Debug Love",
"program": {
"command": "/usr/bin/love"
},
"args": [ "${workspaceFolder} "]
},
{
"name": "Debug Lua Interpreter",
"type": "lua-local",
"request": "launch",
"program": {
"lua": "lua",
"file": "${file}"
}
},
{
"name": "Debug Custom Lua Environment",
"type": "lua-local",
"request": "launch",
"program": {
"command": "command"
},
"args": []
}
]
}
}

View file

@ -1,3 +1,8 @@
-- debug --
if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
require("lldebugger").start()
end
-- libraries --
Object = require 'lib/classic/classic'