Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

SCRIPT DEBUG

Last updated
SCRIPT DEBUG YES | SYNC | NO
Group
Scripting and functions
Complexity
O(1)
Arity
3 (exactly, counting the command name)
HotKV Cloud
All plans
On-Premise
no license needed

SCRIPT DEBUG exists so that tools which set the script debug mode keep working. HotKV has no Lua script debugger, so NO (scripts run normally) is the only mode: it is accepted and changes nothing. YES and SYNC are refused. To debug a script, log from it with redis.log() or return intermediate values.

Case RESP2 RESP3
NO Simple string OK Simple string OK
YES or SYNC Error ERR the Lua debugger is not supported by this server Error
Any other mode Error ERR Use SCRIPT DEBUG YES/SYNC/NO Error
127.0.0.1:6379> SCRIPT DEBUG NO
OK
127.0.0.1:6379> SCRIPT DEBUG YES
(error) ERR the Lua debugger is not supported by this server

Redis 7 and Valkey 8 start an interactive Lua debugger with YES or SYNC. HotKV does not have one and refuses those modes.

SCRIPT, EVAL