Hi, I just set up a new LÖVE2D project and any time I try to run the debugger I get a window that closes immediately.
Project setup:
.
├── .vscode/
│ ├── launch.json
│ └── settings.json
└── main.lua
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Love",
"type": "lua-local",
"request": "launch",
"program": {
"command": "love"
},
"args": [".", "debug"],
"scriptRoots": ["."]
}
]
}
settings.json
{
"Lua.diagnostics.globals": [
"love"
],
"Lua.diagnostics.disable": [
"lowercase-global"
],
"Lua.runtime.version": "LuaJIT",
"Lua.workspace.library": [
"${3rd}/love2d/library"
],
"lua-local.interpreter": "LuaJIT"
}
main.lua
if arg[2] == "debug" then
require("lldebugger").start()
end
function love.draw()
love.graphics.circle("fill", 64, 64, 16)
end
Versions
| package |
version |
installed from |
| code |
VSCodium 1.102.24914 |
scoop |
| extension |
0.3.3 |
open-vsix |
| LÖVE2D |
11.5 |
scoop |
When I run it without the "debug" argument (including via a different vscode task), it runs and draws the circle with no problem. It seems to be exiting at the require line.
Hi, I just set up a new LÖVE2D project and any time I try to run the debugger I get a window that closes immediately.
Project setup:
launch.json{ "version": "0.2.0", "configurations": [ { "name": "Debug Love", "type": "lua-local", "request": "launch", "program": { "command": "love" }, "args": [".", "debug"], "scriptRoots": ["."] } ] }settings.json{ "Lua.diagnostics.globals": [ "love" ], "Lua.diagnostics.disable": [ "lowercase-global" ], "Lua.runtime.version": "LuaJIT", "Lua.workspace.library": [ "${3rd}/love2d/library" ], "lua-local.interpreter": "LuaJIT" }main.luaVersions
When I run it without the "debug" argument (including via a different vscode task), it runs and draws the circle with no problem. It seems to be exiting at the
requireline.