forked from qt-creator/qt-creator
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:
@@ -423,6 +423,7 @@ void StartApplicationDialog::run(bool attachRemote)
|
||||
debugger->setStartMode(AttachToRemoteServer);
|
||||
debugger->setCloseMode(KillAtClose);
|
||||
debugger->setUseContinueInsteadOfRun(true);
|
||||
debugger->setRunControlName(tr("Attach to %1").arg(debugger->remoteChannel()));
|
||||
}
|
||||
debugger->startRunControl();
|
||||
}
|
||||
|
@@ -335,6 +335,11 @@ void DebuggerRunTool::setRemoteChannel(const QUrl &url)
|
||||
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)
|
||||
{
|
||||
m_runParameters.remoteChannel = QString("%1:%2").arg(host).arg(port);
|
||||
|
@@ -95,6 +95,7 @@ public:
|
||||
void setRemoteChannel(const QString &channel);
|
||||
void setRemoteChannel(const QString &host, int port);
|
||||
void setRemoteChannel(const QUrl &url);
|
||||
QString remoteChannel() const;
|
||||
|
||||
void setUseExtendedRemote(bool on);
|
||||
void setUseContinueInsteadOfRun(bool on);
|
||||
|
Reference in New Issue
Block a user