diff options
author | Levente Orban <orbanl@inf.u-szeged.hu> | 2017-05-12 11:36:56 +0200 |
---|---|---|
committer | László Langó <llango.u-szeged@partner.samsung.com> | 2017-05-12 11:36:56 +0200 |
commit | 0066e526f79a5042baf5506d53bf88191f73ae97 (patch) | |
tree | 2655e5869740fefdb9c8157aebfcbeade55a74d7 /jerry-debugger | |
parent | e76d44a2ee037548eaaff2cbd8dfb782d8a841d0 (diff) |
Increase verbosity when breakpoints not found in HTML client (#1817)
JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu
Diffstat (limited to 'jerry-debugger')
-rw-r--r-- | jerry-debugger/jerry-client-ws.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/jerry-debugger/jerry-client-ws.html b/jerry-debugger/jerry-client-ws.html index 01a44b95..d6bb2a54 100644 --- a/jerry-debugger/jerry-client-ws.html +++ b/jerry-debugger/jerry-client-ws.html @@ -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) |