VS Code build in debugging?
Posted: Tue Apr 28, 2020 3:54 pm
I'm trying to use the build in debugger (with breakpoints and variable values and stuff) with love.
The closest I've gotten so far is with the Local Lua Debugger (https://marketplace.visualstudio.com/it ... ger-vscode) with the .vscode/launch.json:
and
in main.lua.
I think the reason it doesn't work yet is because I don't have love.exe in the root folder but I don't know how to set a path in the configurations.
Is there any better way to achieve this, and if not, am I doing anything wrong and how do I set the path?
Thanks in advance,
Killbottt
The closest I've gotten so far is with the Local Lua Debugger (https://marketplace.visualstudio.com/it ... ger-vscode) with the .vscode/launch.json:
Code: Select all
{
"version": "0.2.0",
"configurations": [
{
"type": "lua-local",
"request": "launch",
"name": "Debug LOVE",
"program":
{
"command": "love"
},
"args":
[
"${workspaceFolder}"
],
},
]
}
Code: Select all
if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
require("lldebugger").start()
end
I think the reason it doesn't work yet is because I don't have love.exe in the root folder but I don't know how to set a path in the configurations.
Is there any better way to achieve this, and if not, am I doing anything wrong and how do I set the path?
Thanks in advance,
Killbottt