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

How to launch specifc Lua Interpreter

Open LeRatierBretonnien opened this issue 4 years ago • 6 comments

I have a specific Lua interpreter binary, and i try to launch it using runtimeExecutable, but it does not work :

"configurations": [ { "name": "Myscript", "type": "lua", "request": "launch", "cwd": "${workspaceFolder}", "runtimeExecutable": "${workspaceFolder}/bin/myluabin", "runtimeArgs": [ "${file}" ] }

LeRatierBretonnien avatar Feb 22 '21 14:02 LeRatierBretonnien

What does not work mean?

actboy168 avatar Feb 22 '21 14:02 actboy168

I get this : image

LeRatierBretonnien avatar Feb 22 '21 14:02 LeRatierBretonnien

runtimeExecutable is only supported on Windows. You can try to use luaexe, like this:

"configurations": [
{
"name": "Myscript",
"type": "lua",
"request": "launch",
"cwd": "${workspaceFolder}",
"luaexe": "${workspaceFolder}/bin/myluabin",
"program":  "${file}"
}

actboy168 avatar Feb 22 '21 15:02 actboy168

Yes, thanks, I tried this already. I get a "No file /media/encfs/myproject/bin/myluabin" Bu the file is there !

LeRatierBretonnien avatar Feb 22 '21 15:02 LeRatierBretonnien

Except that this path does not exist, I don't know why this error occurs.

actboy168 avatar Feb 22 '21 15:02 actboy168

For e "luaexe": "/my/path/to/my/lua" worked pretty fine. So this ticket could be closed?

Nevertheless the systemwide luarocks are not found. So I still cannot debug.

lukas-hofstaetter avatar Jan 11 '24 10:01 lukas-hofstaetter