Hi.
Is it possible to use the vscode native lua debugger in vscode?
I have seen mention of remdebug, etc. and I can attach to processes but I’m not sure how this works in vscode or what port renoise would expose?
I have installed globally on windows, with luarocks, and luasocket.
I have installed these extensions:
In .vscode/launch.json I can have attach, launch, etc. what port does renoise remdebug listen on?
When I attempt to use debug.start() I get this message in terminal:
** Failed to connect the controller to the debugger engine. Please check your firewall settings for Lua based programs.
Press return to exit...
I’ve added both lua.exe and renoise.exe to my windows firewall, etc.
Also this screenshot may help:
I was able to get it /sorta/kinda/ working but it’s missing some stuff or I’ve misconfigured it?
edit derp - here is a fixed bit of code:
local rdebug = require("remdebug.engine")
-- default config is "localhost" on port 8171
-- rdebug.configure { host = "127.0.0.1", port = 8171}
rdebug.start()
I had been using engine.engine like a dummy before. I think this should work but now seeing this in the renoise terminal:
*** ...se 3.5.2\Resources\Scripts\Libraries\remdebug\engine.lua:109: attempt to call method 'gfind' (a nil value)
*** stack traceback:
*** ...se 3.5.2\Resources\Scripts\Libraries\remdebug\engine.lua:109: in function 'break_dir'
*** ...se 3.5.2\Resources\Scripts\Libraries\remdebug\engine.lua:133: in function 'merge_paths'
*** ...se 3.5.2\Resources\Scripts\Libraries\remdebug\engine.lua:271: in function '__index'
*** ...se 3.5.2\Resources\Scripts\Libraries\remdebug\engine.lua:567: in function 'start'
*** main.lua:6: in main chunk
Thanks in advance for any help.