forked from qt-creator/qt-creator
QmlV8DebuggerClient: Refactored code
Change List: a) Refactored code: Shifted JSON message creation to QmlV8DebuggerClientPrivate. b) QScriptEngine is used for JSON instead of JsonValue and JsonInputStream. c) Locals Window displays all variables accessible in the current context. Change-Id: I82e73f6c57482408f5fc501c908aa96297d3d754 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -629,10 +629,10 @@ void QmlEngine::attemptBreakpointSynchronization()
|
||||
DebuggerEngine::attemptBreakpointSynchronization();
|
||||
|
||||
if (d->m_adapter.activeDebuggerClient()) {
|
||||
d->m_adapter.activeDebuggerClient()->updateBreakpoints();
|
||||
d->m_adapter.activeDebuggerClient()->synchronizeBreakpoints();
|
||||
} else {
|
||||
foreach (QmlDebuggerClient *client, d->m_adapter.debuggerClients()) {
|
||||
client->updateBreakpoints();
|
||||
client->synchronizeBreakpoints();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -715,7 +715,7 @@ void QmlEngine::updateWatchData(const WatchData &data,
|
||||
if (data.isValueNeeded()) {
|
||||
logMessage(LogSend, QString("%1 %2 %3").arg(QString("EXEC"), QString(data.iname),
|
||||
QString(data.name)));
|
||||
d->m_adapter.activeDebuggerClient()->updateWatchData(&data);
|
||||
d->m_adapter.activeDebuggerClient()->updateWatchData(data);
|
||||
}
|
||||
if (data.isChildrenNeeded()
|
||||
&& watchHandler()->isExpandedIName(data.iname)) {
|
||||
|
||||
Reference in New Issue
Block a user