I'm running on redis-cli 3.1.103 (git:4b89ea3a) and with the following Lua code:

local myTable = {}
myTable.a = 1337
local test = myTable.a

If I am to debug after all 3 lines (but before the program returns), print test returns 1337, however print myTable.a returns No such variable. No go with print myTable["a"] either. Is that a known limitation or an actual bug? My search turned up nothing. Thanks by the way for the debugger, really handy tool! :smile:

Comment From: itamarhaber

Neither and a little of both IMO :)

It is a limitation but it wasn't explicitly known until you had reported it. It isn't exactly a bug either, more like a feature request, but it still merits an issue. On top of that, I don't think that the limitation is actually of the debugger's print's - it does what it is intended for, meaning print the variable regardless its type.

The actual "limitation", which was knowingly made and documented, is of the debugger's eval and the fact that it doesn't share the context of the debugged script. It is worth noting that @pkulchenko's ZeroBrane plugin for Redis does a nice job of providing a remote console that sort of combines eval's and print's capabilities.

[image: Inline image 2]

On Tue, Mar 1, 2016 at 6:00 PM, Mathieu M-Gosselin <notifications@github.com

wrote:

I'm running on redis-cli 3.1.103 (git:4b89ea3a) and with the following Lua code:

local myTable = {} myTable.a = 1337local test = myTable.a

If I am to debug after all 3 lines (but before the program returns), print test returns 1337, however print myTable.a returns No such variable. No go with print myTable["a"] either. Is that a known limitation or an actual bug? My search turned up nothing. Thanks by the way for the debugger, really handy tool! [image: :smile:]

— Reply to this email directly or view it on GitHub https://github.com/antirez/redis/issues/3117.

Itamar Haber | Chief Developer Advocate Redis Watch Newsletter http://redislabs.com/redis-watch-archive | &&(curat||edit||janit||) _Redis http://www.redislabs.com/_Labs http://www.redislabs.com/ | ~ of Redis

Mobile: +1 (415) 688 2443 Office: +1 (650) 461 4652 Mobile (IL): +972 (54) 567 9692 Office (IL): +972 (3) 720 8515 Ext. 123 Email: itamar@redislabs.com Twitter: @itamarhaber https://twitter.com/itamarhaber Skype: itamar.haber

Blog http://redislabs.com/blog/ | Twitter https://twitter.com/redislabs | LinkedIn https://www.linkedin.com/company/redis-labs-inc

https://www.redislabs.com/company/redis-labs-careers

Comment From: pkulchenko

@mathieumg, here is the information about the plugin and the integration: https://redislabs.com/blog/zerobrane-studio-plugin-for-redis-lua-scripts. If you use the IDE as Itamar has suggested, you should see those values in the stack or access them in the Remote Console. They may also be accessed as tooltips or watches.

Comment From: mathieumg

Thanks for the guidance and fast answer, at least I know I'm not misusing it. :smile:

Comment From: itamarhaber

Closing as a known limitation.