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:
Levente Orban 2017-05-12 11:36:56 +02:00 committed by László Langó
parent e76d44a2ee
commit 0066e526f7

View File

@ -891,6 +891,7 @@ function DebuggerClient(address)
this.setBreakpoint = function(str)
{
line = /^(.+):([1-9][0-9]*)$/.exec(str);
var found = false;
if (line)
{
@ -906,6 +907,7 @@ function DebuggerClient(address)
|| sourceName.endsWith("\\" + line[1]))
{
insertBreakpoint(func.lines[line[2]]);
found = true;
}
}
}
@ -918,9 +920,14 @@ function DebuggerClient(address)
if (func.name == str)
{
insertBreakpoint(func.lines[func.firstBreakpointLine]);
found = true;
}
}
}
if (!found)
{
appendLog("Breakpoint not found");
}
}
this.sendExceptionConfig = function(enable)