forked from qt-creator/qt-creator
QmlV8DebuggerClient: Edit breakpoints
Enable and disable breakpoints. Condition and ignoreCount parameters can be reset for breakpoints. Change-Id: I3427308964eff679828b25c473166524f45f0d56 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -968,6 +968,16 @@ void QmlV8DebuggerClient::changeBreakpoint(const BreakpointModelId &id)
|
||||
if (params.type == BreakpointAtJavaScriptThrow) {
|
||||
d->setExceptionBreak(AllExceptions, params.enabled);
|
||||
}
|
||||
|
||||
int breakpoint = d->breakpoints.value(id);
|
||||
d->changeBreakpoint(breakpoint, params.enabled, QString(params.condition),
|
||||
params.ignoreCount);
|
||||
|
||||
BreakpointResponse br = handler->response(id);
|
||||
br.enabled = params.enabled;
|
||||
br.condition = params.condition;
|
||||
br.ignoreCount = params.ignoreCount;
|
||||
handler->setResponse(id, br);
|
||||
}
|
||||
|
||||
void QmlV8DebuggerClient::synchronizeBreakpoints()
|
||||
|
||||
Reference in New Issue
Block a user