pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.62k stars 518 forks source link

Support Unix domain sockets for debugging #651

Open DemiMarie opened 8 years ago

DemiMarie commented 8 years ago

Unix domain sockets are both faster and more secure than TCP sockets, even TCP sockets bound to localhost.

pkulchenko commented 8 years ago

Here is an example for reference: http://stackoverflow.com/questions/30240830/lua-socket-unix-domain-sockets.

This requires several things: socket.unix library needs to be compiled, mobdebug needs to be changed to accept a socket name instead of an ip/port combination, and the IDE needs to be changed to listen to the unix socket (probably passed as debugger.hostname) instead of the wildcard address.

If you already have the libraries compiled and some simple examples working, I can probably come up with more specific pointers as to what needs to be changed, but I probably won't get to this until some other things (like wxwidgets upgrade) are completed.