Commit ab3d07a2 authored by Aurindam Jana's avatar Aurindam Jana
Browse files

QmlV8DebuggerClient: Optimize debug requests



Do not send duplicate and redundant requests.
Use a queue to ensure processing of one request at a time
during a debug break

Change-Id: I086ef3b578922fb247f9d35f9759855227e63eaa
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent 2492724d
......@@ -61,12 +61,11 @@ class QmlV8DebuggerClient : public QmlDebuggerClient
Next
};
enum V8DebuggerStates
enum V8DebugServiceStates
{
RunningState,
BreakpointsRequestedState,
BacktraceRequestedState,
WaitingForRequestState
WaitingForRequestState,
ProcessingRequestState
};
public:
......@@ -106,6 +105,7 @@ public:
protected:
void messageReceived(const QByteArray &data);
void sendMessage(const QByteArray &msg);
private:
void updateStack(const QVariant &bodyVal, const QVariant &refsVal);
......@@ -125,7 +125,7 @@ private:
const QString &errorMessage);
void clearExceptionSelection();
void resetState();
void resetDebugger();
void updateLocalsAndWatchers();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment