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:
committed by
Robert Sipka
parent
b8ccdee4db
commit
e993ee6cdc
@@ -840,7 +840,23 @@ function DebuggerClient(address)
|
|||||||
{
|
{
|
||||||
breakpoint = activeBreakpoints[index];
|
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);
|
appendLog("No breakpoint found with index " + index);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user