forked from qt-creator/qt-creator
QmlJSDebug: Fix debugging of qmlobserver on Windows
-qmljsdebug argument must not be escaped by parenthesis, and be the first argument.
This commit is contained in:
@@ -198,9 +198,8 @@ RunControl *QmlRunControlFactory::createDebugRunControl(QmlProjectRunConfigurati
|
||||
params.executable = runConfig->observerPath();
|
||||
params.qmlServerAddress = "127.0.0.1";
|
||||
params.qmlServerPort = runConfig->qmlDebugServerPort();
|
||||
params.processArgs = runConfig->viewerArguments();
|
||||
Utils::QtcProcess::addArg(¶ms.processArgs,
|
||||
QLatin1String("-qmljsdebugger=port:") + QString::number(runConfig->qmlDebugServerPort()));
|
||||
params.processArgs = QLatin1String("-qmljsdebugger=port:") + QString::number(runConfig->qmlDebugServerPort());
|
||||
params.processArgs += QLatin1Char(' ') + runConfig->viewerArguments();
|
||||
params.workingDirectory = runConfig->workingDirectory();
|
||||
params.environment = runConfig->environment();
|
||||
params.displayName = runConfig->displayName();
|
||||
|
||||
Reference in New Issue
Block a user