QML JS Debugger: Asynchronous call to watchHandler()->endCycle()

All the expended item need to be retreived before we can call endCycle
This commit is contained in:
Olivier Goffart
2010-07-23 11:30:07 +02:00
parent 3114c47c6e
commit 70f3f5d029
3 changed files with 52 additions and 13 deletions

View File

@@ -408,6 +408,13 @@ void JSDebuggerAgent::messageReceived(const QByteArray& message)
}
state = oldState;
//TODO: feedback
} else if (command == "PING") {
int ping;
ds >> ping;
QByteArray reply;
QDataStream rs(&reply, QIODevice::WriteOnly);
rs << QByteArray("PONG") << ping;
sendMessage(reply);
} else {
qDebug() << Q_FUNC_INFO << "Unknown command" << command;
}