lua-debug icon indicating copy to clipboard operation
lua-debug copied to clipboard

Luarocks support?

Open Frityet opened this issue 2 years ago • 2 comments

How could I make the plugin work with a project I created with luarocks init?

Here is my launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lua",
            "request": "launch",
            "name": "Debug",
            "program": "${workspaceFolder}/tests/main.lua",
            "luaexe": "${workspaceFolder}/lua",
            "luaVersion": "jit",
        }
    ]
}

Frityet avatar Aug 20 '22 19:08 Frityet

I don't know about luarocks.

Maybe you can remove "luaexe": "${workspaceFolder}/lua".

actboy168 avatar Aug 22 '22 01:08 actboy168

Luarocks has a shell script in ${workspaceFolder}/lua

Frityet avatar Aug 24 '22 21:08 Frityet

I am also interested to achieve the same as @Frityet . any idea how can we incorporate luarocks with this nice debugging extension?

Nilegfx avatar Oct 07 '22 09:10 Nilegfx

I am also interested to achieve the same as @Frityet . any idea how can we incorporate luarocks with this nice debugging extension?

Alright so with enough elbow grease I was able to get it to work, basically you need to run luarocks make before trying to execute the file which should be in the lua_modules dir (look in the subdirs). Make sure you setup the launch settings to make the LuaRocks loader run on launch. You will have to adjust path and c path to make it work. I will write a proper tutorial later!

Frityet avatar Oct 09 '22 20:10 Frityet

@Nilegfx https://github.com/actboy168/lua-debug/issues/202

Frityet avatar Nov 11 '22 08:11 Frityet