lua - 使用 zerobrane 调试 openresty
问题描述
我已按照本教程设置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;;';
解决方案
您没有说您使用的是什么版本的 ZeroBrane Studio,但您需要使用存储库中 master 分支中的最新版本,因为最近有几个与 openresty 相关的修复程序应用于调试器并合并。
推荐阅读
- javascript - JavaScript 待办事项列表 - 当我单击“编辑”按钮时,它不显示能够更改待办事项的输入
- python - google-api-python-client httplib2 超时
- powershell - 从远程计算机调用时交换 cmdlet
- ios - 通过选择触摸行来预览表格视图单元格中的视图
- ios - 来自不兼容指针类型的类型分配是否应该在objective-c中总是失败?
- c# - 对于具有不同参考的实体,将实体状态设置为已修改
- loopbackjs - 关于“PUT”和“DELETE”查询
- animation - 如何在ue4中停止声音并返回到空闲动画
- javascript - FBInstant 未定义
- css - 如何使 fontawsome 图标在禁用的按钮中旋转