I just noticed this, seems new, anyone tried it?
https://marketplace.visualstudio.com/it ... .lua-debug
I've been wanting to make the switch from Sublime to VSCode for a while as it has some nifty IDE-like features, but still can be configured to have the minimalist look I dig from Sublime. One thing I had been waiting for is a good debugger I can use with Lua 5.1, this looks like it...
Seems to be made my a Korean mobile game dev studio, that is using Gideros, another gamedev framework that uses Lua so purposes seem similar.
Noticed new Lua Debugger for VSCode
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Noticed new Lua Debugger for VSCode
Thanks for this hint.
I just tried it, you only need to add this into the vs-code debug configuration file.
Add this into your main.lua after loading all your other required files:
main.lua
and this into your love.update function:
Breakpoint and watches are working, but stepping through the code should work, but sadly does not. Any hints?
I just tried it, you only need to add this into the vs-code debug configuration file.
Code: Select all
{
"name": "launch-löve",
"type": "lua",
"request": "launch",
"workingDirectory": "${workspaceRoot}",
"executable": "${workspaceRoot}/../092/love.exe",
"arguments": "./",
"listenPublicly": false,
"listenPort": 56789,
"encoding": "UTF-8"
},
main.lua
Code: Select all
-- requires
local json = require 'lib/debug/dkjson'
local debuggee = require 'lib/debug/vscode-debuggee'
local startResult, breakerType = debuggee.start(json)
print('debuggee start ->', startResult, breakerType)
-- code
Code: Select all
function love.update(dt)
if debuggee then debuggee.poll() end
end
Breakpoint and watches are working, but stepping through the code should work, but sadly does not. Any hints?
Re: Noticed new Lua Debugger for VSCode
Ah that's too bad step through doesn't work. Unfortunately can't offer any hints, as after I posted I saw this is Windows only, and I'm on a Mac . Glad it was useful for you thought!Breakpoint and watches are working, but stepping through the code should work, but sadly does not. Any hints?
Re: Noticed new Lua Debugger for VSCode
Hi guys!
Are there any news about smooth debugging of Love2D
with VS Code?
Are there any news about smooth debugging of Love2D
with VS Code?
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
Re: Noticed new Lua Debugger for VSCode
Hi!
If some one else interested in debugging with code, here is a link.
https://github.com/tomblind/local-lua-debugger-vscode
This was working for me so far.
If some one else interested in debugging with code, here is a link.
https://github.com/tomblind/local-lua-debugger-vscode
This was working for me so far.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 5 guests