Commit 77afdb42 authored by hjk's avatar hjk
Browse files

debugger: in the qmldebugger, draw location marker _above_ breakpoints

parent 78b06e7c
......@@ -97,7 +97,6 @@ void QmlCppEnginePrivate::cppStackChanged()
foreach (const StackFrame &frame, m_cppEngine->stackHandler()->frames()) {
if (frame.function.endsWith(firstFunction))
break;
qDebug() << firstFunction << frame.function;
frames.append(frame);
}
int level = frames.size();
......
......@@ -675,7 +675,7 @@ void QmlEngine::messageReceived(const QByteArray &message)
stream >> command;
if (command == "STOPPED") {
qDebug() << command << this << state();
//qDebug() << command << this << state();
if (state() == InferiorRunOk)
notifyInferiorSpontaneousStop();
......@@ -693,7 +693,6 @@ void QmlEngine::messageReceived(const QByteArray &message)
for (int i = 0; i != stackFrames.size(); ++i)
stackFrames[i].level = i + 1;
gotoLocation(stackFrames.value(0));
stackHandler()->setFrames(stackFrames);
watchHandler()->beginCycle();
......@@ -773,6 +772,10 @@ void QmlEngine::messageReceived(const QByteArray &message)
logMessage(LogReceive, logString);
}
if (!stackFrames.isEmpty())
gotoLocation(stackFrames.value(0));
} else if (command == "RESULT") {
WatchData data;
QByteArray iname;
......
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