mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Add delete all breakpoints feature to debugger (javascript) (#1628)
JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu
This commit is contained in:
parent
b8ccdee4db
commit
e993ee6cdc
@ -840,7 +840,23 @@ function DebuggerClient(address)
|
||||
{
|
||||
breakpoint = activeBreakpoints[index];
|
||||
|
||||
if (!breakpoint)
|
||||
if (index == "all")
|
||||
{
|
||||
var found = false;
|
||||
|
||||
for (var i in activeBreakpoints)
|
||||
{
|
||||
delete activeBreakpoints[i];
|
||||
found = true;
|
||||
}
|
||||
|
||||
if (!found)
|
||||
{
|
||||
appendLog("No active breakpoints.")
|
||||
}
|
||||
}
|
||||
|
||||
else if (!breakpoint)
|
||||
{
|
||||
appendLog("No breakpoint found with index " + index);
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user