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:
Levente Orban 2017-02-28 10:51:48 +01:00 committed by Robert Sipka
parent b8ccdee4db
commit e993ee6cdc

View File

@ -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;