使用 zerobrane 调试 openresty
debug openresty with zerobrane
我已按照本教程进行设置 Zerobrane IDE for debugging openresty:
http://notebook.kulchenko.com/zerobrane/debugging-openresty-nginx-lua-scripts-with-zerobrane-studio.
我通过 brew 公式安装了 openresty 1.19.3.1,并且 lua 脚本正在运行。
用 zerobrane 仔细检查了所有内容,我得到的错误是:
Debugger server started at vgh.local:8172.
Can't start debugging for '/usr/local/Cellar/openresty/1.19.3.1_1/nginx/lua/content.lua'. Compilation error:
Debugger connection closed
Debugging session completed (traced 0 instructions).
Refused a request to start a new debugging session as there is one in progress already.
我应该检查什么?
这是我在 macOS 上的配置文件,但我在 linux (ubuntu 20.10):
上遇到了同样的错误
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;;';
您没有说您使用的是哪个版本的 ZeroBrane Studio,但您需要使用 repository, as there have been several openresty-related fixes applied to the debugger and merged recently 中 master 分支的最新版本。
我已按照本教程进行设置 Zerobrane IDE for debugging openresty:
http://notebook.kulchenko.com/zerobrane/debugging-openresty-nginx-lua-scripts-with-zerobrane-studio.
我通过 brew 公式安装了 openresty 1.19.3.1,并且 lua 脚本正在运行。
用 zerobrane 仔细检查了所有内容,我得到的错误是:
Debugger server started at vgh.local:8172.
Can't start debugging for '/usr/local/Cellar/openresty/1.19.3.1_1/nginx/lua/content.lua'. Compilation error:
Debugger connection closed
Debugging session completed (traced 0 instructions).
Refused a request to start a new debugging session as there is one in progress already.
我应该检查什么? 这是我在 macOS 上的配置文件,但我在 linux (ubuntu 20.10):
上遇到了同样的错误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;;';
您没有说您使用的是哪个版本的 ZeroBrane Studio,但您需要使用 repository, as there have been several openresty-related fixes applied to the debugger and merged recently 中 master 分支的最新版本。