Improved breakpoint handling in qmlv8debuggerclient

Breakpoints are resolved and set only after querying for their actual locations from v8 engine.

Change-Id: If119865f50d9f91a4930096751599a4f22bc9d26
Reviewed-on: http://codereview.qt.nokia.com/3406
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
This commit is contained in:
Aurindam Jana
2011-08-23 15:05:30 +02:00
parent a75c905687
commit 3edc756ad7
4 changed files with 70 additions and 55 deletions

View File

@@ -89,10 +89,12 @@ protected:
void messageReceived(const QByteArray &data);
private:
void listBreakpoints();
void backtrace();
void setStackFrames(QByteArray &);
void setLocals(int frameIndex);
void setExpression(QByteArray &message);
void updateBreakpoints(QByteArray &message);
void expandLocal(QByteArray &message);
void setPropertyValue(Json::JsonValue &refs, Json::JsonValue &property, QByteArray &prepend);
int indexInRef(const Json::JsonValue &refs, int refIndex);