Closed andrewstarks closed 3 years ago
I believe this was due to the Luarocks version of MobDebug, which was out of date and did not replace setfenv
or getfenv
with the Lua 5.2+ equivalents. Downloading this directly from the MobDebug GitHub repository seems to have solved my issue. Thanks!
@andrewstarks, thank you for the update; I'm a bit confused though, as the Mobdebug that ships with the IDE itself supports Lua 5.4. Did you try to use a different version in your application, which created the issue?
On the 1.9 builds and also from the master branch:
I'm trying to keep things nicely contained in my project, and so I've used
luarocks --init
to install libraries in the project folder, along with a wrapper around the lua binary that reads:I've included mobdebug, luasockets, and other libraries in my project's rock tree.
When running
./lua
from the command line, it works great, including adding-e "io.stdout:setvbuf('no')"
, which works as expected. I've also verified that the correct paths are loaded.When attempting to use this in ZBS, I get this in the Output window:
And it freezes. When I stop the debugger, I get this:
Any clues?