Debugger: Mark pending C++ breakpoints with hour glass icon

Change-Id: If012953f8fb1e2705244ffe9f02c6bbbbc9d93c1
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-08-12 13:49:35 +02:00
parent 31abbba961
commit b769156c19
2 changed files with 9 additions and 1 deletions

View File

@@ -753,6 +753,9 @@ void QmlEngine::insertBreakpoint(Breakpoint bp)
const BreakpointParameters &params = bp.parameters();
if (params.type == BreakpointAtJavaScriptThrow) {
BreakpointResponse br = bp.response();
br.pending = false;
bp.setResponse(br);
bp.notifyBreakpointInsertOk();
d->setExceptionBreak(AllExceptions, params.enabled);
@@ -763,6 +766,9 @@ void QmlEngine::insertBreakpoint(Breakpoint bp)
} else if (params.type == BreakpointOnQmlSignalEmit) {
d->setBreakpoint(QString(_(EVENT)), params.functionName, params.enabled);
BreakpointResponse br = bp.response();
br.pending = false;
bp.setResponse(br);
bp.notifyBreakpointInsertOk();
}
@@ -1798,6 +1804,7 @@ void QmlEnginePrivate::messageReceived(const QByteArray &data)
if (bp.state() != BreakpointInserted) {
BreakpointResponse br = bp.response();
br.lineNumber = breakpointData.value(_("line")).toInt() + 1;
br.pending = false;
bp.setResponse(br);
bp.notifyBreakpointInsertOk();
}
@@ -1958,6 +1965,7 @@ void QmlEnginePrivate::messageReceived(const QByteArray &data)
if (bp.state() != BreakpointInserted) {
br.lineNumber = breakData.value(
_("sourceLine")).toInt() + 1;
br.pending = false;
bp.setResponse(br);
bp.notifyBreakpointInsertOk();
}