Example #1
0
LaunchOptions LaunchPage::launchOptions() const
{
  LaunchOptions opt;

  QStringList l;
  l.push_back(ui->progEdit->text());
  l.append(notEmptyString(m_argsModel->stringList()));
  opt.setLaunchArguments(l);

  switch (ui->accessMode->currentIndex()) {
    case 0: // local, out-of-process
      opt.setProbeSetting("RemoteAccessEnabled", true);
      opt.setProbeSetting("TCPServer", "127.0.0.1");
      opt.setUiMode(LaunchOptions::OutOfProcessUi);
      break;
    case 1: // remote, out-of-process
      opt.setProbeSetting("RemoteAccessEnabled", true);
      opt.setProbeSetting("TCPServer", "0.0.0.0");
      opt.setUiMode(LaunchOptions::OutOfProcessUi);
      break;
    case 2: // in-process
      opt.setProbeSetting("RemoteAccessEnabled", false);
      opt.setUiMode(LaunchOptions::InProcessUi);
      break;
  }

  return opt;
}
Example #2
0
LaunchOptions LaunchPage::launchOptions() const
{
  LaunchOptions opt;

  QStringList l;
  l.push_back(ui->progEdit->text());
  l.append(notEmptyString(m_argsModel->stringList()));
  opt.setLaunchArguments(l);
  opt.setProbeABI(ui->probeBox->itemData(ui->probeBox->currentIndex()).value<ProbeABI>());

  switch (ui->accessMode->currentIndex()) {
    case 0: // local, out-of-process
      opt.setProbeSetting(QStringLiteral("RemoteAccessEnabled"), true);
      opt.setProbeSetting(QStringLiteral("ServerAddress"), GAMMARAY_DEFAULT_LOCAL_TCP_URL);
      opt.setUiMode(LaunchOptions::OutOfProcessUi);
      break;
    case 1: // remote, out-of-process
      opt.setProbeSetting(QStringLiteral("RemoteAccessEnabled"), true);
      opt.setProbeSetting(QStringLiteral("ServerAddress"), GAMMARAY_DEFAULT_ANY_TCP_URL);
      opt.setUiMode(LaunchOptions::OutOfProcessUi);
      break;
    case 2: // in-process
      opt.setProbeSetting(QStringLiteral("RemoteAccessEnabled"), false);
      opt.setUiMode(LaunchOptions::InProcessUi);
      break;
  }

  return opt;
}