{"id":19839332,"url":"https://github.com/redislabs/redis-lua-debugger","last_synced_at":"2025-05-01T18:31:57.724Z","repository":{"id":25237286,"uuid":"28661879","full_name":"RedisLabs/redis-lua-debugger","owner":"RedisLabs","description":"A Redis Lua script for debugging Redis Lua scripts","archived":false,"fork":false,"pushed_at":"2015-09-25T15:41:35.000Z","size":144,"stargazers_count":89,"open_issues_count":0,"forks_count":14,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-06T16:54:21.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"LuaLanes/lanes","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedisLabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-31T09:14:42.000Z","updated_at":"2024-11-15T07:46:25.000Z","dependencies_parsed_at":"2022-09-12T21:42:27.669Z","dependency_job_id":null,"html_url":"https://github.com/RedisLabs/redis-lua-debugger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Fredis-lua-debugger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Fredis-lua-debugger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Fredis-lua-debugger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedisLabs%2Fredis-lua-debugger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedisLabs","download_url":"https://codeload.github.com/RedisLabs/redis-lua-debugger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251924837,"owners_count":21666043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T12:21:50.415Z","updated_at":"2025-05-01T18:31:57.421Z","avatar_url":"https://github.com/RedisLabs.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"redis-lua-debugger\n==================\nrld is a non-interactive debugger for Lua scripts running in Redis. See [this post](https://redislabs.com/blog/pop-the-red-boxs-lid-redis-lua-debugger) for a runtime example.\n\nrld's features include:\n- Easy \u0026 native installation, only ~6KB payload.\n- Prints output to local and remote consoles.\n- Traces the execution of code lines.\n- State-of-the-art automatic watch mechanism reports new variables and value changes.\n- Reports function calls, returns and arguments and does on-the-fly profiling.\n\nBasic usage\n-----------\n 1. Load rld.lua to Redis once (e.g. `redis-cli --eval rld.lua`).\n 2. Add this line at the beginning of your Lua script: `rld.start()`.\n 3. Run your code as usual (e.g. `redis-cli --eval prog.lua`).\n 4. View rld's output in Redis' log file or by subscribing to the `rld` channel.\n\nAPI\n---\n- `rld.start()` - starts the debugger\n- `rld.stop()` - stops the debugger\n- `rld.troff()` / `rld.tron()` - toggles tracing off/on\n- `rld.options` - debugger options, see source for details\n\nTODO\n----\n- Instead of auto-watch, watch explicit variables by regex (i.e. default is `.*`)\n- Publish to different channels according to topic (trace, variables,...)\n- Add options arguments to start()\n\nKnown Issues\n------------\n- This script is not compatible with Redis v3 and above (https://github.com/antirez/redis/commit/30278061cc834b4073b004cb1a2bfb0f195734f7)\n- Last line of user script doesn't trigger auto-watch change printouts\n- Function names are shown without global context (e.g. `redis.call` becomes `call`)\n- rld functions are also traced (e.g. calling rld.stop/troff/tron from @user_script)\n- Replication breaker: while the rld script is replicated, it is never run on the slave explicitly and therefore doesn't register in _G. This causes user scripts to break in the slave when trying to invoke rld.\n\nContributing\n------------\n 1. Fork it.\n 2. Change it.\n 3. Make a pull request.\n \nLicense\n-------\nSee the `LICENSE` file.\n\nDISCLAIMER\n----------\nThis script is highly experimental - use at your own risk! (and never in production ;))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredislabs%2Fredis-lua-debugger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredislabs%2Fredis-lua-debugger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredislabs%2Fredis-lua-debugger/lists"}