Stack window shows no output when debugging Redis

2019-08-03 03:09发布

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:

enter image description here

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"

enter image description here

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

enter image description here

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条回答
叛逆
2楼-- · 2019-08-03 03:43

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

查看更多
登录 后发表回答