forked from qt-creator/qt-creator
Debugger: Use a QUrl for Qml server port and host
Host and port reasonably belong together, using a QUrl makes that more explicit and follows the lead of the Qml profiler in that area. Change-Id: I754cb17d165ce6b2f25c655eeebfd8ac8f5a93c7 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
@@ -77,17 +77,16 @@ void LinuxDeviceDebugSupport::start()
|
||||
|
||||
const QString host = device()->sshParameters().host;
|
||||
const Port gdbServerPort = m_portsGatherer->gdbServerPort();
|
||||
const Port qmlServerPort = m_portsGatherer->qmlServerPort();
|
||||
const int qmlServerPort = m_portsGatherer->qmlServerPort().number();
|
||||
|
||||
DebuggerStartParameters params;
|
||||
params.startMode = AttachToRemoteServer;
|
||||
params.closeMode = KillAndExitMonitorAtClose;
|
||||
|
||||
if (isQmlDebugging()) {
|
||||
params.qmlServer.host = host;
|
||||
params.qmlServer.port = qmlServerPort;
|
||||
params.inferior.commandLineArguments.replace("%qml_port%",
|
||||
QString::number(qmlServerPort.number()));
|
||||
params.qmlServer.setHost(host);
|
||||
params.qmlServer.setPort(qmlServerPort);
|
||||
params.inferior.commandLineArguments.replace("%qml_port%", QString::number(qmlServerPort));
|
||||
}
|
||||
if (isCppDebugging()) {
|
||||
Runnable r = runnable();
|
||||
|
||||
Reference in New Issue
Block a user