forked from qt-creator/qt-creator
debugger: move DebuggerRunControl *m_runControl into IDebuggerEngine.
Plan is to identify make identify an IDebuggerEngine incarnation with a RunControl.
This commit is contained in:
@@ -201,14 +201,16 @@ void QmlEngine::exitDebugger()
|
||||
manager()->notifyInferiorExited();
|
||||
}
|
||||
|
||||
void QmlEngine::startDebugger(const DebuggerRunControl *runControl)
|
||||
void QmlEngine::startDebugger()
|
||||
{
|
||||
QTC_ASSERT(runControl(), return);
|
||||
qDebug() << "STARTING QML ENGINE";
|
||||
setState(InferiorRunningRequested);
|
||||
showStatusMessage(tr("Running requested..."), 5000);
|
||||
const int pos = runControl->sp().remoteChannel.indexOf(QLatin1Char(':'));
|
||||
const QString host = runControl->sp().remoteChannel.left(pos);
|
||||
const quint16 port = runControl->sp().remoteChannel.mid(pos + 1).toInt();
|
||||
const DebuggerStartParameters &sp = runControl()->sp();
|
||||
const int pos = sp.remoteChannel.indexOf(QLatin1Char(':'));
|
||||
const QString host = sp.remoteChannel.left(pos);
|
||||
const quint16 port = sp.remoteChannel.mid(pos + 1).toInt();
|
||||
//QTimer::singleShot(0, this, SLOT(runInferior()));
|
||||
m_socket->connectToHost(host, port);
|
||||
emit startSuccessful();
|
||||
|
||||
Reference in New Issue
Block a user