Increase verbosity when breakpoints not found in HTML client (#1817)
JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu
This commit is contained in:
committed by
László Langó
parent
e76d44a2ee
commit
0066e526f7
@@ -891,6 +891,7 @@ function DebuggerClient(address)
|
|||||||
this.setBreakpoint = function(str)
|
this.setBreakpoint = function(str)
|
||||||
{
|
{
|
||||||
line = /^(.+):([1-9][0-9]*)$/.exec(str);
|
line = /^(.+):([1-9][0-9]*)$/.exec(str);
|
||||||
|
var found = false;
|
||||||
|
|
||||||
if (line)
|
if (line)
|
||||||
{
|
{
|
||||||
@@ -906,6 +907,7 @@ function DebuggerClient(address)
|
|||||||
|| sourceName.endsWith("\\" + line[1]))
|
|| sourceName.endsWith("\\" + line[1]))
|
||||||
{
|
{
|
||||||
insertBreakpoint(func.lines[line[2]]);
|
insertBreakpoint(func.lines[line[2]]);
|
||||||
|
found = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -918,9 +920,14 @@ function DebuggerClient(address)
|
|||||||
if (func.name == str)
|
if (func.name == str)
|
||||||
{
|
{
|
||||||
insertBreakpoint(func.lines[func.firstBreakpointLine]);
|
insertBreakpoint(func.lines[func.firstBreakpointLine]);
|
||||||
|
found = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!found)
|
||||||
|
{
|
||||||
|
appendLog("Breakpoint not found");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.sendExceptionConfig = function(enable)
|
this.sendExceptionConfig = function(enable)
|
||||||
|
|||||||
Reference in New Issue
Block a user