VS Code build in debugging?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
killbottt
Prole
Posts: 2
Joined: Tue Apr 28, 2020 3:06 pm

VS Code build in debugging?

Post 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
killbottt
Prole
Posts: 2
Joined: Tue Apr 28, 2020 3:06 pm

Re: VS Code build in debugging?

Post by killbottt »

I still didn't find a solution btw...
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: VS Code build in debugging?

Post 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
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Nikki and 9 guests