ZBS ZeroBraneStudio lua 库在 Mac OS 中的位置

我想要调试本地主机上正在运行的 openresty lua。我在我的 MAC 上安装了 ZBS IDE 来实现这个目的。我正在查看文档,其可以在 at 上获得。

说明中说我需要在 nginx 配置中设置以下内容

lua_package_path '{ZBS}/lualibs/?/?.lua;{ZBS}/lualibs/?.lua;;';
lua_package_cpath '{ZBS}/bin/clibs/?.dll;;';

我发现在我的 mac 中找到它的位置非常困难。我通过将 dmg 移动到应用程序目录中来安装 IDE。由于我无法设置此路径,因此我的 ngix 无法找到该模块“mobdebug”。

有关如何在 Mac OS 中找到 ZBS lua lib 路径的任何想法吗?

点赞
用户1442917
用户1442917

如果您安装了 ZeroBrane Studio(ZBS)作为应用程序,则路径中的 {ZBS} 需要替换为类似于 /Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio 的内容,因此完整路径如下:

lua_package_path '/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/lualibs/?/?.lua;/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/lualibs/?.lua;;';
lua_package_cpath '/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/clibs/?.dylib;;';
2017-09-28 17:54:49