V8DebuggerClient: Enable breakpoints on Exceptions

Previously break on exceptions was always enabled. Now, the user
can add a breakpoint on Javascript Exceptions from the breakpoint
window in the debugger.

Change-Id: Ia9ee813d2fccf89b607fe1dcbad47b4084155a48
Reviewed-on: http://codereview.qt-project.org/6348
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Aurindam Jana
2011-10-10 15:25:18 +02:00
parent f1db83be8b
commit 32ef6c563d
8 changed files with 53 additions and 20 deletions

View File

@@ -108,6 +108,7 @@ static BreakpointParameters fixWinMSVCBreakpoint(const BreakpointParameters &p)
case BreakpointAtSysCall:
case WatchpointAtAddress:
case BreakpointOnQmlSignalHandler:
case BreakpointAtJavaScriptThrow:
break;
case BreakpointAtExec: { // Emulate by breaking on CreateProcessW().
BreakpointParameters rc(BreakpointByFunction);
@@ -165,6 +166,7 @@ QByteArray cdbAddBreakpointCommand(const BreakpointParameters &bpIn,
case BreakpointAtThrow:
case BreakpointAtMain:
case BreakpointOnQmlSignalHandler:
case BreakpointAtJavaScriptThrow:
QTC_ASSERT(false, return QByteArray(); )
break;
case BreakpointByAddress: