$ luarocks install remdebug
RemDebug is a remote debugger for Lua. It lets you
control the execution of another Lua program remotely, setting
breakpoints and inspecting the current state of the program.
RemDebug can also debug CGILua scripts.
Versions
Dependencies
lua >= 5.0
LuaFileSystem >= 1.2
LuaSocket >= 2.0