I'm happy to announce that, cocos2d-x has integrated
v3.0-beta2, which will be release in the next week. So we can remote debug lua scripts via ZeroBrane, here's a tutorial on how to do it:
How to Remote Debug Lua via ZeroBraneStudio
Currently it works on iOS and Android. I haven't check if my coworker has added luasocket in to mac & windows platform.