Closed bleachkitty closed 2 years ago
Since I don't know how your exe uses lua, I can't give any suggestions. But you need to know that using runtimeExecutable to debug is not applicable to any executable program. Because it cannot inject the debugger with zero knowledge. I suggest you load the debugger yourself. like this https://github.com/actboy168/lua-debug/blob/master/examples/attach
Thanks for quick reply!
I just did some testing by rolling back the lua-debug plugin and everything works correctly with version 1.30.1. 1.31 appears to have broken this. Did anything change that might changed the behavior of how the debugger attaches?
To answer your question, I build the Lua runtime as a DLL and link that in.
-Rez
1.30.1 is the latest version, I don't know what 1.31 is.
Sorry, I just realized that. Off-by-1 error! Version 1.29.1 works, version 1.30 does not.
I'm running Lua 5.3.6 and can't seem to debug an x64 executable anymore. x86 works fine as does x64 in release mode. When I try to debug (or even just launch without debugging), the application opens for a split second and immediately dies. Since I can't even launch without debugging, I'm guessing there's something that's broken in my configuration or how I've set up my project, but I have no idea what it could be.
I can open the application by double-clicking on the executable just fine, and I can debug it through it Visual Studio, but I can't Visual Studio Code to behave. This configuration definitely worked in the past, though I've been in C++ land for the last several months so I don't recall the last time it worked. I've tried both the release and debug versions of Lua DLL.
My configuration is as follows: