MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaRedisBreakpointCommand

Function luaRedisBreakpointCommand

src/scripting.cpp:947–955  ·  view source on GitHub ↗

redis.breakpoint() * * Allows to stop execution during a debugging session from within * the Lua code implementation, like if a breakpoint was set in the code * immediately after the function. */

Source from the content-addressed store, hash-verified

945 * the Lua code implementation, like if a breakpoint was set in the code
946 * immediately after the function. */
947int luaRedisBreakpointCommand(lua_State *lua) {
948 if (ldb.active) {
949 ldb.luabp = 1;
950 lua_pushboolean(lua,1);
951 } else {
952 lua_pushboolean(lua,0);
953 }
954 return 1;
955}
956
957/* redis.debug()
958 *

Callers

nothing calls this directly

Calls 1

lua_pushbooleanFunction · 0.85

Tested by

no test coverage detected