Stack window shows no output when debugging Redis Lua scripts with ZeroBrane

会有一股神秘感。 提交于 2020-01-05 05:46:06

问题


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.


回答1:


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).



来源:https://stackoverflow.com/questions/47251176/stack-window-shows-no-output-when-debugging-redis-lua-scripts-with-zerobrane

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!