actboy168 / lua-debug

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

using stock lua binary #287

Open fikin opened 7 months ago

fikin commented 7 months ago

plugin provided binary does not contain bit32 module compiled with it.

in past i'd simply replace ~/.vscode/extensions/actboy168.lua-debug-2.0.4-linux-x64/runtime/linux-x64/lua53/lua with actual one provided by OS i.e. /usr/bin/lua5.3. and vscode debugger was working.

but now if i do that, vscode debugger hangs i.e. fails to attach to the lua process.

any suggestions what is the problem?

actboy168 commented 7 months ago

You can use Lua compiled by yourself.

fikin commented 7 months ago

if there is nothing specific to lua binary, my guess would be that vscode debugger session does not connect with the running process. hence the hanging.

is there anything which might impact this when replacing lua binary with generic distro one (like from debian repos)?

district10 commented 1 month ago

This plugin works locally on my macOS air (m1), but not work on vscode remote connection.

I haven't found the solution, but you can configure lua binary at:

image
fikin commented 1 month ago

ok, so we're having problem with remote.

sure enough, downgrading plugin version to v2.0.9 makes it work or me, even when i replace the binary. see #298

i'd say this issue would be resolved by same solution.