forked from qt-creator/qt-creator
Synchronize the client with the debug service
The v8 engine is blocked till the client is connected to the service to ensure proper hitting of breakpoints. Task-number: QTCREATORBUG-5412 Change-Id: Iec772cb547a31fef4cccbd4bb1116699c52d20e5 Reviewed-on: http://codereview.qt.nokia.com/3308 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -192,7 +192,19 @@ void QmlV8DebuggerClient::interruptInferior()
|
||||
|
||||
}
|
||||
|
||||
void QmlV8DebuggerClient::shutdownInferior()
|
||||
void QmlV8DebuggerClient::connect()
|
||||
{
|
||||
QByteArray request;
|
||||
|
||||
JsonInputStream(request) << '{' << INITIALPARAMS ;
|
||||
JsonInputStream(request) << ',' << "command" << ':' << "connect";
|
||||
|
||||
JsonInputStream(request) << '}';
|
||||
|
||||
sendMessage(packMessage(request));
|
||||
}
|
||||
|
||||
void QmlV8DebuggerClient::disconnect()
|
||||
{
|
||||
QByteArray request;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user