diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index c4b9281a25e7f70f64678f8aff5c7db97c3d5b82..af13b37f952fdb1b89b1c8eabeea8057a9c16960 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -624,8 +624,10 @@ void QmlEngine::messageReceived(const QByteArray &message) Internal::StackFrames stackFrames; typedef QPair<QString, QPair<QString, qint32> > Iterator; + int level = 0; foreach (const Iterator &it, backtrace) { Internal::StackFrame frame; + frame.level = ++level; frame.file = it.second.first; frame.line = it.second.second; frame.function = it.first;