forked from qt-creator/qt-creator
Changed the behaviour of setting breakpoints in qml files.
Delegates setting of breakpoints to functions that set/reset/change the breakpoint one at a time. Change-Id: I553a74b05cf19c9d2436344db67bc962da18457f Reviewed-on: http://codereview.qt.nokia.com/3082 Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
This commit is contained in:
@@ -202,21 +202,29 @@ void QScriptDebuggerClient::activateFrame(int index)
|
||||
sendMessage(reply);
|
||||
}
|
||||
|
||||
void QScriptDebuggerClient::insertBreakpoints(BreakHandler *handler, BreakpointModelId *id)
|
||||
void QScriptDebuggerClient::insertBreakpoint(BreakpointModelId id, BreakHandler *handler)
|
||||
{
|
||||
JSAgentBreakpointData bp;
|
||||
bp.fileUrl = QUrl::fromLocalFile(handler->fileName(*id)).toString().toUtf8();
|
||||
bp.lineNumber = handler->lineNumber(*id);
|
||||
bp.functionName = handler->functionName(*id).toUtf8();
|
||||
bp.fileUrl = QUrl::fromLocalFile(handler->fileName(id)).toString().toUtf8();
|
||||
bp.lineNumber = handler->lineNumber(id);
|
||||
bp.functionName = handler->functionName(id).toUtf8();
|
||||
d->breakpoints.insert(bp);
|
||||
}
|
||||
|
||||
void QScriptDebuggerClient::removeBreakpoints(BreakpointModelId * /*id*/)
|
||||
void QScriptDebuggerClient::removeBreakpoint(BreakpointModelId id, BreakHandler *handler)
|
||||
{
|
||||
|
||||
JSAgentBreakpointData bp;
|
||||
bp.fileUrl = QUrl::fromLocalFile(handler->fileName(id)).toString().toUtf8();
|
||||
bp.lineNumber = handler->lineNumber(id);
|
||||
bp.functionName = handler->functionName(id).toUtf8();
|
||||
d->breakpoints.remove(bp);
|
||||
}
|
||||
|
||||
void QScriptDebuggerClient::setBreakpoints()
|
||||
void QScriptDebuggerClient::changeBreakpoint(BreakpointModelId /*id*/, BreakHandler * /*handler*/)
|
||||
{
|
||||
}
|
||||
|
||||
void QScriptDebuggerClient::updateBreakpoints()
|
||||
{
|
||||
QByteArray reply;
|
||||
QDataStream rs(&reply, QIODevice::WriteOnly);
|
||||
@@ -224,8 +232,6 @@ void QScriptDebuggerClient::setBreakpoints()
|
||||
rs << cmd
|
||||
<< d->breakpoints;
|
||||
sendMessage(reply);
|
||||
|
||||
d->breakpoints.clear();
|
||||
}
|
||||
|
||||
void QScriptDebuggerClient::assignValueInDebugger(const QByteArray expr, const quint64 &id,
|
||||
|
||||
Reference in New Issue
Block a user