add debugging
This commit is contained in:
parent
1db165a12b
commit
7845a95ac4
2 changed files with 38 additions and 1 deletions
|
|
@ -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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
5
main.lua
5
main.lua
|
|
@ -1,3 +1,8 @@
|
|||
-- debug --
|
||||
if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
|
||||
require("lldebugger").start()
|
||||
end
|
||||
|
||||
-- libraries --
|
||||
Object = require 'lib/classic/classic'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue