actboy168 / lua-debug

Lua Debug Adapter for Visual Studio Code
MIT License
437 stars 95 forks source link

How to launch specifc Lua Interpreter #122

Open LeRatierBretonnien opened 3 years ago

LeRatierBretonnien commented 3 years ago

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}" ] }

actboy168 commented 3 years ago

What does not work mean?

LeRatierBretonnien commented 3 years ago

I get this : image

actboy168 commented 3 years ago

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}"
}
LeRatierBretonnien commented 3 years ago

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

actboy168 commented 3 years ago

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

lukas-hofstaetter commented 8 months ago

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.