public void OpenZbsDebugger(string ip = "localhost")
{
if (!Directory.Exists(LuaConst.zbsDir))
{
Debugger.LogWarning("ZeroBraneStudio not install or LuaConst.zbsDir not right");
return;
}
if (!LuaConst.openLuaSocket)
{
OpenLuaSocket();
}
if (!string.IsNullOrEmpty(LuaConst.zbsDir))
{
luaState.AddSearchPath(LuaConst.zbsDir);
}
luaState.LuaDoString(string.Format("DebugServerIp = '{0}'", ip));
}