EmmyLua / IntelliJ-EmmyLua

Lua IDE/Debugger Plugin for IntelliJ IDEA
https://emmylua.github.io
Apache License 2.0
1.73k stars 290 forks source link

Allow using MobDebug without injecting it #477

Closed AlmogBaku closed 2 years ago

AlmogBaku commented 2 years ago

Currently, the debugger is not usable when running Lua scripts that are embedded in a program(such as "redis" or "pandoc"), because EmmyLua is injecting the MobDebug and expect to run the script from Lua and injecting it using the -e flag. Resulting in error: Unknown option -e.

https://github.com/EmmyLua/IntelliJ-EmmyLua/blob/66b994d206eea78ebcee47519cb2536a4fc24896/src/main/java/com/tang/intellij/lua/debugger/app/LuaAppMobProcess.kt#L53

AlmogBaku commented 2 years ago

OK, I found how it's possible via a "generic debugger" and not creating the debugger via the ide for the file: https://emmylua.github.io/run/remote.html