Maemo: Fix QML debugging.

In general, at least. Does not actually stop at breakpoints yet.
This commit is contained in:
Christian Kandeler
2011-02-11 16:02:41 +01:00
parent ef800d296f
commit f08e42f9ec
4 changed files with 18 additions and 8 deletions

View File

@@ -285,6 +285,10 @@ void MaemoDebugSupport::startDebugging()
SLOT(handleRemoteErrorOutput(QByteArray)));
connect(m_runner, SIGNAL(remoteOutput(QByteArray)), this,
SLOT(handleRemoteOutput(QByteArray)));
if (m_debuggingType == MaemoRunConfiguration::DebugQmlOnly) {
connect(m_runner, SIGNAL(remoteProcessStarted()),
SLOT(handleRemoteProcessStarted()));
}
const QString &remoteExe = m_runner->remoteExecutable();
const QString cmdPrefix = MaemoGlobal::remoteCommandPrefix(remoteExe);
const QString env = MaemoGlobal::remoteEnvironment(m_userEnvChanges);
@@ -350,6 +354,13 @@ void MaemoDebugSupport::handleAdapterSetupDone()
m_engine->handleRemoteSetupDone(m_gdbServerPort, m_qmlPort);
}
void MaemoDebugSupport::handleRemoteProcessStarted()
{
Q_ASSERT(m_debuggingType == MaemoRunConfiguration::DebugQmlOnly);
ASSERT_STATE(StartingRemoteProcess);
handleAdapterSetupDone();
}
void MaemoDebugSupport::setState(State newState)
{
if (m_state == newState)