actboy168 / lua-debug

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

using stock lua binary #287

Open fikin opened 8 months ago

fikin commented 8 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 8 months ago

You can use Lua compiled by yourself.

fikin commented 8 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 2 months 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 2 months 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.