From 8a7287c8c43b3140074940fc7a04297ed4bc767d Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Wed, 27 Oct 2010 16:07:36 +0200 Subject: [PATCH] debugger: show stack frame level in js debugger --- src/plugins/debugger/qml/qmlengine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index c4b9281a25e..af13b37f952 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; -- GitLab