From cd112db0ae0e30d2005680b62509a1e517b3612a Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 11 Nov 2015 23:07:57 +0100 Subject: [PATCH] Lua debugger: removing breakpoints now works. --- src/scripting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting.c b/src/scripting.c index 5353bfa7..4564782f 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -1976,7 +1976,7 @@ void ldbBreak(sds *argv, int argc) { ldbLog(sdsnew("Wrong line number.")); } } else if (line < 0) { - if (ldbDelBreakpoint(line)) + if (ldbDelBreakpoint(-line)) ldbLog(sdsnew("Breakpoint removed.")); else ldbLog(sdsnew("No breakpoint in the specified line."));