Open thejustinwalsh opened 3 years ago
I'm thinking I'll add an env variable LOCAL_LUA_DEBUGGER_FILEPATH
that contains the full path to the script to help environments like this. Then, loading could be as simple as:
package.loaded["lldebugger"] = assert(loadfile(os.getenv("LOCAL_LUA_DEBUGGER_FILEPATH")))()
require("lldebugger").start()
added in ae45175
That is much less code than I was using. Haha might not even need an extension anymore, but still going to do it for good measure.
I can add in checks to not load the module if it is a release build, and ensure start doesn't fail in the case where the module is not loaded etc.
Some quality of life stuff over in Defold land.
Waiting for the release to update my interlayer debugger as well. 👍
FYI: I've added a minimal setup example in the README
This may be useful for other engines as well where the
require
statement is using custom loaders...The gist of it is:
Some of this code is working around a few bugs, strict mode, and aslant configs I have setup.