使用ZeroBrane调试Redis Lua脚本时,堆栈窗口不显示任何输出 [英] Stack window shows no output when debugging Redis Lua scripts with ZeroBrane
问题描述
我已按照本教程调试Redis Lua脚本. https://www.youtube.com/watch?v=7mlajCj4QPw
一切正常,除了堆栈"窗口不显示任何输出,因此我看不到需要调试的变量的值.如果我将Lua解释器更改为redis以外的其他内容,并尝试调试一些常规的Lua代码,则它会工作,并且堆栈窗口会显示所有内容.但是,一旦我切换为Redis的Lua解释器,那么Stack窗口中就不会显示任何内容.
我从此存储库加载redis.lua插件 如视频中所建议: https://github.com/pkulchenko/ZeroBranePackage
堆栈窗口为空,如您所见:
有什么问题吗?
出于某种原因,当我在远程控制台中输入GET foo时,它也会说:
从Lua脚本调用Redis命令的参数数目错误"
由于我在另一台计算机上运行了Redis,所以我想也许我不得不更改一些设置:
debugger.hostname = "192.168.0.161"
debugger.port = 8172
当我尝试运行它时,它说:
无法通过192.168.0.161:8172连接到调试器:连接被拒绝
我是否需要对Virtual Linux Box上的redis设置做一些特殊的事情才能远程调试Redis?我正在使用Windows 7,因此无法在其上安装Redis 3.2进行调试,因此必须在VirtualBox的Cent OS 7上运行它.
这两个问题(空堆栈窗口和控制台中Redis命令的错误)都应在Redis插件的更新版本(0.33)中修复. >
I have followed this tutorial to debug Redis Lua scripts. https://www.youtube.com/watch?v=7mlajCj4QPw
Everything works except for that the Stack window shows no output so I can't see the value of the variables which is what I need to debug. If I change the Lua interpreter to something else than redis, and try to debug some normal Lua code then it works, and stack window shows everything. But once I switch to Redis as Lua interpreter then nothing shows on the Stack window.
I load up the redis.lua plugin from this repository as suggested in the video: https://github.com/pkulchenko/ZeroBranePackage
Stack Window is empty as you can see:
What could be wrong?
Also for some reason when I enter GET foo in the remote console it says:
"Wrong number of args calling Redis command From Lua script"
Since I have redis running on another machine, I thought perhaps I had to change some settings:
debugger.hostname = "192.168.0.161"
debugger.port = 8172
When I try to run it it says:
Can't connect to the debugger at '192.168.0.161:8172': connection refused
Do I have to do something special to the redis settings on my Virtual Linux Box to remote debug Redis? I am using Windows 7 so I can't install Redis 3.2 on it to debug so I have to run it on Cent OS 7 on VirtualBox.
Both of these issues (empty stack window and an error on Redis commands in console) should be fixed in the updated version of Redis plugin (0.33).
这篇关于使用ZeroBrane调试Redis Lua脚本时,堆栈窗口不显示任何输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!