Debugger: Use some more verbose description for attaching to remote

Change-Id: I36e9793b1db98b538455c8d6075e8116a5af14bb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
hjk
2019-11-11 12:37:50 +01:00
parent 9645906ae2
commit 82e8ceab8b
3 changed files with 7 additions and 0 deletions

View File

@@ -423,6 +423,7 @@ void StartApplicationDialog::run(bool attachRemote)
debugger->setStartMode(AttachToRemoteServer); debugger->setStartMode(AttachToRemoteServer);
debugger->setCloseMode(KillAtClose); debugger->setCloseMode(KillAtClose);
debugger->setUseContinueInsteadOfRun(true); debugger->setUseContinueInsteadOfRun(true);
debugger->setRunControlName(tr("Attach to %1").arg(debugger->remoteChannel()));
} }
debugger->startRunControl(); debugger->startRunControl();
} }

View File

@@ -335,6 +335,11 @@ void DebuggerRunTool::setRemoteChannel(const QUrl &url)
m_runParameters.remoteChannel = QString("%1:%2").arg(url.host()).arg(url.port()); m_runParameters.remoteChannel = QString("%1:%2").arg(url.host()).arg(url.port());
} }
QString DebuggerRunTool::remoteChannel() const
{
return m_runParameters.remoteChannel;
}
void DebuggerRunTool::setRemoteChannel(const QString &host, int port) void DebuggerRunTool::setRemoteChannel(const QString &host, int port)
{ {
m_runParameters.remoteChannel = QString("%1:%2").arg(host).arg(port); m_runParameters.remoteChannel = QString("%1:%2").arg(host).arg(port);

View File

@@ -95,6 +95,7 @@ public:
void setRemoteChannel(const QString &channel); void setRemoteChannel(const QString &channel);
void setRemoteChannel(const QString &host, int port); void setRemoteChannel(const QString &host, int port);
void setRemoteChannel(const QUrl &url); void setRemoteChannel(const QUrl &url);
QString remoteChannel() const;
void setUseExtendedRemote(bool on); void setUseExtendedRemote(bool on);
void setUseContinueInsteadOfRun(bool on); void setUseContinueInsteadOfRun(bool on);