-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.6.1
-
None
-
openSUSE Tumbleweed
installed by online installer (as root/sudo)
The sample code is:
int port = QRandomGenerator::global()->bounded(10000, 20000);
QProcess* process = new QProcess();
QString program = "/opt/google/chrome/google-chrome";
QStringList arguments;
arguments << "--headless";
arguments << "--remote-debugging-port=" % QLocale::c().toString(port);
arguments << baseUrl;
qDebug() << "Chrome Args: " << arguments;
process->start(program, arguments, QIODevice::ReadWrite);
if (!process->waitForStarted()) {
qDebug() << "Can't start chrome with remote debugger";
emit errorOccured(process->readAllStandardError());
} else {
qDebug() << "Chrome started with remote debugger: port = " << port;
}
qDebug() << "Chrome Logs: " << qPrintable(process->readAllStandardOutput());
qDebug() << "Chrome Errors: " << qPrintable(process->readAllStandardError());