Company
Date Published
Author
Itamar Haber
Word count
1153
Language
English
Hacker News points
None

Summary

The Redis Lua Debugger (LDB) is a new feature in Redis version 3.2 that allows developers to step through their Lua scripts, set breakpoints, inspect variables, and run Redis commands in a debugger. It comes in both asynchronous and synchronous modes, with the former being non-blocking and discarding updates to the dataset, while the latter blocks and retains data changes. The LDB is implemented in the Redis server, and a command line interface (redis-cli) provides a console for running scripts in debug mode. A plugin for ZeroBrane Studio, an open-source Lua IDE, has been created to integrate the LDB with the IDE, allowing users to debug their Redis Lua scripts in a more intuitive way. The plugin supports syntax highlighting, tooltips, autocompletion, and regular expression searches, making it easy to use and navigate. The plugin also includes features such as remote console access, the ability to call Redis API commands, and support for the full Redis Lua API and libraries.