【问题标题】:debug openresty with zerobrane使用 zerobrane 调试 openresty
【发布时间】:2021-03-21 06:40:27
【问题描述】:

我已按照本教程设置 Zerobrane IDE 以调试 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;;';

【问题讨论】:

    标签: lua openresty zerobrane


    【解决方案1】:

    您没有说明您使用的是什么版本的 ZeroBrane Studio,但您需要使用 repository 的 master 分支中的最新版本,因为有几个 openresty-related fixes applied to the debuggermerged recently

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多