Commit b7cbc967 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.rewriter: improve debugging

Change-Id: I62c6ba8a95ec0bdbf99b5422c5f00235d85167e3
Reviewed-on: http://codereview.qt.nokia.com/721

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 26058a57
......@@ -44,6 +44,12 @@ FirstDefinitionFinder::FirstDefinitionFinder(const QString &text):
m_doc->setSource(text);
bool ok = m_doc->parseQml();
if (!ok) {
qDebug() << text;
foreach (const QmlJS::DiagnosticMessage &message, m_doc->diagnosticMessages())
qDebug() << message.message;
}
Q_ASSERT(ok);
}
......
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