script debug
SCRIPT
SCRIPT DEBUG YES|SYNC|NO
Set the debug mode for subsequent scripts executed with EVAL- Redis includes a complete Lua debugger, codename LDB, that can be used to make the task of writing complex scripts much simpler- In debug mode Redis acts as a remote debugging server and a client, such as redis-cli
, can execute scripts step by step, set breakpoints, inspect variables and more - for additional information about LDB refer to the Redis Lua debugger page.
Important note: avoid debugging Lua scripts using your Redis production server. Use a development server instead.
LDB can be enabled in one of two modes: asynchronous or synchronous. In asynchronous mode the server creates a forked debugging sessi