From 6e0caec046d3b27e78665271959d9a2339a4fa53 Mon Sep 17 00:00:00 2001 From: Aurindam Jana Date: Wed, 14 Mar 2012 11:58:31 +0100 Subject: QmlDebugging: Assign Value in Debugger Call EXEC instead of SET_PROPERTY for assigning a value in Locals and Expressions. Also check if the id of the object is valid before calling EXPAND. Task-number: QTCREATORBUG-7089 Change-Id: I2769e5345cfb7ecf87e36125821f141821556690 Reviewed-by: Christian Stenger --- src/plugins/debugger/qml/qmlv8debuggerclient.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/plugins/debugger/qml/qmlv8debuggerclient.cpp') diff --git a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp index ee888af93e..1ce9aa8ff7 100644 --- a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp +++ b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp @@ -1153,11 +1153,12 @@ void QmlV8DebuggerClient::synchronizeBreakpoints() //NOT USED } -void QmlV8DebuggerClient::assignValueInDebugger(const QByteArray /*expr*/, const quint64 &/*id*/, - const QString &property, const QString &value) +void QmlV8DebuggerClient::assignValueInDebugger(const WatchData * /*data*/, + const QString &expr, + const QVariant &valueV) { StackHandler *stackHandler = d->engine->stackHandler(); - QString expression = QString(_("%1 = %2;")).arg(property).arg(value); + QString expression = QString(_("%1 = %2;")).arg(expr).arg(valueV.toString()); if (stackHandler->isContentsValid() && stackHandler->currentFrame().isUsable()) { d->evaluate(expression, false, false, stackHandler->currentIndex()); } else { -- cgit v1.2.1