Commit 378d0cd1 authored by Aurindam Jana's avatar Aurindam Jana

QmlDebugging: Reset exception code highlighting

Clear code highlighting when debugging session ends.

Change-Id: I32844444161bbb609864926e12220f9fb0f492e2
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 01252c53
......@@ -52,6 +52,7 @@ public:
virtual void startSession() = 0;
virtual void endSession() = 0;
virtual void resetSession() = 0;
virtual void executeStep() = 0;
virtual void executeStepOut() = 0;
......
......@@ -659,6 +659,9 @@ void QmlEngine::shutdownInferior()
void QmlEngine::shutdownEngine()
{
if (m_adapter.activeDebuggerClient())
m_adapter.activeDebuggerClient()->resetSession();
if (qmlConsoleManager())
qmlConsoleManager()->setScriptEvaluator(0);
m_noDebugOutputTimer.stop();
......
......@@ -949,6 +949,11 @@ void QmlV8DebuggerClient::endSession()
d->disconnect();
}
void QmlV8DebuggerClient::resetSession()
{
clearExceptionSelection();
}
void QmlV8DebuggerClient::executeStep()
{
clearExceptionSelection();
......
......@@ -62,6 +62,7 @@ public:
void startSession();
void endSession();
void resetSession();
void executeStep();
void executeStepOut();
......
......@@ -223,6 +223,10 @@ void QScriptDebuggerClient::startSession()
}
void QScriptDebuggerClient::endSession()
{
}
void QScriptDebuggerClient::resetSession()
{
d->sessionStarted = false;
}
......
......@@ -47,6 +47,7 @@ public:
void startSession();
void endSession();
void resetSession();
void executeStep();
void executeStepOut();
......
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