Page 1 of 1

VS Code build in debugging?

Posted: Tue Apr 28, 2020 3:54 pm
by killbottt
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:

Code: Select all

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lua-local",
            "request": "launch",
            "name": "Debug LOVE",
            "program":
            {
                "command": "love"
            },
            "args": 
            [
                "${workspaceFolder}"
            ],
        },
    ]
}
and

Code: Select all

if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
	require("lldebugger").start()
end
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

Re: VS Code build in debugging?

Posted: Mon May 04, 2020 11:34 am
by killbottt
I still didn't find a solution btw...

Re: VS Code build in debugging?

Posted: Mon May 04, 2020 12:21 pm
by zorg
A belated hi and welcome to the forums! :P

Unfortunately i don't use vscode so i specifically can't help you out there. :c

However, you could try asking on the Löve Discord, if no one on the forums seems to have an answer. :3