mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
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:
parent
e76d44a2ee
commit
0066e526f7
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user