Commit 885520d9 authored by Aurindam Jana's avatar Aurindam Jana
Browse files

RemoteLinuxAnalyzeSupport: Fix empty remote command line to device



Currently only QML profiling is supported. Pass the remote command
along with -qmljsdebugger argument to device.

Change-Id: Ia64396f9c6da80e70cb1ee624ed974f8cc32465f
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
parent 173da5f4
......@@ -121,25 +121,26 @@ void RemoteLinuxAnalyzeSupport::startExecution()
{
QTC_ASSERT(state() == GatheringPorts, return);
if (d->qmlProfiling && !setPort(d->qmlPort))
return;
// Currently we support only QML profiling
QTC_ASSERT(d->qmlProfiling, return);
if (!setPort(d->qmlPort))
return;
setState(StartingRunner);
DeviceApplicationRunner *runner = appRunner();
connect(runner, SIGNAL(remoteStderr(QByteArray)), SLOT(handleRemoteErrorOutput(QByteArray)));
connect(runner, SIGNAL(remoteStdout(QByteArray)), SLOT(handleRemoteOutput(QByteArray)));
if (d->qmlProfiling)
connect(runner, SIGNAL(remoteProcessStarted()), SLOT(handleRemoteProcessStarted()));
QString args = arguments();
if (d->qmlProfiling)
args += QString::fromLocal8Bit(" -qmljsdebugger=port:%1,block").arg(d->qmlPort);
const QString remoteCommandLine = d->qmlProfiling
? QString::fromLatin1("%1 %2 %3").arg(commandPrefix()).arg(remoteFilePath()).arg(args)
: QString();
connect(runner, SIGNAL(remoteProcessStarted()), SLOT(handleRemoteProcessStarted()));
connect(runner, SIGNAL(finished(bool)), SLOT(handleAppRunnerFinished(bool)));
connect(runner, SIGNAL(reportProgress(QString)), SLOT(handleProgressReport(QString)));
connect(runner, SIGNAL(reportError(QString)), SLOT(handleAppRunnerError(QString)));
const QString args = arguments()
+ QString::fromLocal8Bit(" -qmljsdebugger=port:%1,block").arg(d->qmlPort);
const QString remoteCommandLine =
QString::fromLatin1("%1 %2 %3").arg(commandPrefix()).arg(remoteFilePath()).arg(args);
runner->start(device(), remoteCommandLine.toUtf8());
}
......
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