diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-07-22 11:51:25 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-07-29 14:36:24 +0000 |
commit | b99d52528cbe6830cbf3616d487a2918ac76c02f (patch) | |
tree | 0000e02258cd2c3a541433e77e94f46056f7c780 /src/qml/debugger | |
parent | 7784327e71f4d4f727e2d59733fa68122a85997a (diff) |
Improve QV4DebugService debug output
JSON Payloads look better without the quotes.
Change-Id: I5a7954ab58449cccabc29b0d3b499838dafe9338
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/debugger')
-rw-r--r-- | src/qml/debugger/qv4debugservice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/debugger/qv4debugservice.cpp b/src/qml/debugger/qv4debugservice.cpp index ef78b379a1..aa9bdfdb97 100644 --- a/src/qml/debugger/qv4debugservice.cpp +++ b/src/qml/debugger/qv4debugservice.cpp @@ -371,7 +371,7 @@ public: QByteArray responseData = doc.toJson(QJsonDocument::Indented); #endif - TRACE_PROTOCOL(qDebug() << "sending response for:" << responseData << endl); + TRACE_PROTOCOL(qDebug() << "sending response for:" << responseData.constData() << endl); q_func()->sendMessage(packMessage("v8message", responseData)); } @@ -1154,7 +1154,7 @@ void QV4DebugService::messageReceived(const QByteArray &message) } else if (type == "v8request") { handleV8Request(payload); } else if (type == V4_DISCONNECT) { - TRACE_PROTOCOL(qDebug() << "... payload:" << payload); + TRACE_PROTOCOL(qDebug() << "... payload:" << payload.constData()); handleV8Request(payload); } else { sendSomethingToSomebody(type, 0); @@ -1239,7 +1239,7 @@ void QV4DebugService::handleV8Request(const QByteArray &payload) { Q_D(QV4DebugService); - TRACE_PROTOCOL(qDebug() << "v8request, payload:" << payload); + TRACE_PROTOCOL(qDebug() << "v8request, payload:" << payload.constData()); QJsonDocument request = QJsonDocument::fromJson(payload); QJsonObject o = request.object(); |