Sets the debug JPDA remote socket debugging argument.

@param suspend {@code true} to suspend otherwise {@code false}
@param port    the port to listen on

@return the builder
761260
public StandaloneCommandBuilder setDebug(final boolean suspend, final int port) {
        debugArg = String.format(DEBUG_FORMAT, (suspend ? "y" : "n"), port);
        return this;
    }
1252967
protected Server configureJetty(final int port) {
        final Server server = new Server();
        final ServerConnector connector = new ServerConnector(server);

        // TODO: make all of this configurable
        connector.setIdleTimeout((int)TimeUnit.HOURS.toMillis(1));
        connector.setSoLingerTime(-1);
        connector.setPort(port);

        server.addConnector(connector);

        // set the injector as an attribute in the context
        sch.setAttribute("guice-injector", injector);

        // prevent the JSESSIONID from getting set via a URL argument
        sch.setInitParameter("org.eclipse.jetty.servlet.SessionIdPathParameterName", "none");

        // add the font mime type by default
        sch.getMimeTypes().addMimeMapping("woff", "application/x-font-woff");

        // if we're using a database, then install the filter
        if(!settings.getDatabaseSettings().getNotUsed()) {
            // setup a FilterHolder for the Guice Persistence
            final FilterHolder persistFilter = new FilterHolder(injector.getInstance(PersistFilter.class));

            // add the filter to the context
            sch.addFilter(persistFilter, "/*", DISPATCHER_TYPES);
        }

        // setup a FilterHolder for WebSockets
        final FilterHolder webSocketFilter = new FilterHolder(Jetty9WebSocketFilter.class);

        // set the app factor as the Guice Web App Factory
        webSocketFilter.setInitParameter("applicationFactoryClassName", GuiceWebApplicationFactory.class.getName());

        // tell the filter to use the injector in the context instead of making a new one
        webSocketFilter.setInitParameter("injectorContextAttribute", "guice-injector");

        // setup the filter mapping
        webSocketFilter.setInitParameter(WicketFilter.FILTER_MAPPING_PARAM, "/*");

        webSocketFilter.setInitParameter("configuration", "deployment");

        // add the filter to the context
        sch.addFilter(webSocketFilter, "/*", DISPATCHER_TYPES);

        // add the default servlet as Guice & Wicket will take care of everything for us
        sch.addServlet(DefaultServlet.class,  "/*");

        server.setHandler(sch);

        return server;
    }
458144
public static void proxyPort(final int port) {
    final String portValue = Integer.toString(port);
    setProperty("http.proxyPort", portValue);
    setProperty("https.proxyPort", portValue);
  }
868856
public static void setDebugFlags(JShell state, int flags) {
        if (debugMap == null) {
            debugMap = new HashMap<>();
        }
        debugMap.put(state, flags);
    }
1234042
function (port, debug) {
  this.port = port || 'tcp://127.0.0.1:13674';
  this.debug = debug || false;
  this.socket = zeromq.socket('router');
  this.socket.identity = 'zmqrpc-'+process.pid;
  this.rpc = undefined;
}
387133
@Deprecated
    public ServerBuilder port(InetSocketAddress localAddress, String protocol) {
        return port(localAddress, SessionProtocol.of(requireNonNull(protocol, "protocol")));
    }
557841
protected boolean setConnector() {
		if (this.host == null) {
			log.error("No host value set, cannot set up socket connector.");
			return false;
		}
		if (this.port < 0 || this.port > 65535) {
			log.error("Port value is invalid {}.", Integer.valueOf(this.port));
			return false;
		}
		if (this.executors == null) {
			this.executors = new ExecutorFilter(1);
		}
		this.connector = new NioSocketConnector();
		this.connector.getSessionConfig().setWriterIdleTime(
				SolverWorldModelInterface.TIMEOUT_PERIOD /2);
		this.connector.getSessionConfig().setReaderIdleTime(
				(int) Math.ceil(TIMEOUT_PERIOD * 1.1));
		if (!this.connector.getFilterChain().contains(
				WorldModelSolverProtocolCodecFactory.CODEC_NAME)) {
			this.connector.getFilterChain().addLast(
					WorldModelSolverProtocolCodecFactory.CODEC_NAME,
					new ProtocolCodecFilter(
							new WorldModelSolverProtocolCodecFactory(true)));
		}
		this.connector.getFilterChain().addLast("ExecutorPool", this.executors);
		this.connector.setHandler(this.ioHandler);
		log.debug("Connector set up successful.");
		return true;
	}
735090
public static ManagedChannelBuilder<?> forAddress(String name, int port) {
    return ManagedChannelProvider.provider().builderForAddress(name, port);
  }
515540
public GetGlue setIsDebug(boolean isDebug) {
        this.isDebug = isDebug;

        RestAdapter.LogLevel logLevel = isDebug ? RestAdapter.LogLevel.FULL : RestAdapter.LogLevel.NONE;
        if (restAdapter != null) {
            restAdapter.setLogLevel(logLevel);
        }
        if (restAdapterApiFour != null) {
            restAdapterApiFour.setLogLevel(logLevel);
        }

        return this;
    }
324819
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (com.google.api.ads.admanager.axis.v201805.CreativeTemplateServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) {
                com.google.api.ads.admanager.axis.v201805.CreativeTemplateServiceSoapBindingStub _stub = new com.google.api.ads.admanager.axis.v201805.CreativeTemplateServiceSoapBindingStub(new java.net.URL(CreativeTemplateServiceInterfacePort_address), this);
                _stub.setPortName(getCreativeTemplateServiceInterfacePortWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }
949105
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (com.codeborne.security.digidoc.DigiDocServicePortType.class.isAssignableFrom(serviceEndpointInterface)) {
                com.codeborne.security.digidoc.DigiDocServiceStub _stub = new com.codeborne.security.digidoc.DigiDocServiceStub(new java.net.URL(DigiDocService_address), this);
                _stub.setPortName(getDigiDocServiceWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }
395468
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (com.google.api.ads.admanager.axis.v201805.CreativeWrapperServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) {
                com.google.api.ads.admanager.axis.v201805.CreativeWrapperServiceSoapBindingStub _stub = new com.google.api.ads.admanager.axis.v201805.CreativeWrapperServiceSoapBindingStub(new java.net.URL(CreativeWrapperServiceInterfacePort_address), this);
                _stub.setPortName(getCreativeWrapperServiceInterfacePortWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }
162473
public Proxy setPort( int port )
    {
        if ( this.port == port )
        {
            return this;
        }
        return new Proxy( type, host, port, auth );
    }
771620
public static NetworkPort remotePort(String hostname, int port){
        return new RemoteNetworkPort(hostname, port, NetworkPort.Type.TCP);
    }
1111274
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
        try {
            if (com.google.api.ads.admanager.axis.v201808.CustomFieldServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) {
                com.google.api.ads.admanager.axis.v201808.CustomFieldServiceSoapBindingStub _stub = new com.google.api.ads.admanager.axis.v201808.CustomFieldServiceSoapBindingStub(new java.net.URL(CustomFieldServiceInterfacePort_address), this);
                _stub.setPortName(getCustomFieldServiceInterfacePortWSDDServiceName());
                return _stub;
            }
        }
        catch (java.lang.Throwable t) {
            throw new javax.xml.rpc.ServiceException(t);
        }
        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
    }
193694
public function setModeDebug(DebugInterface $debugObject = null)
    {
        if (is_null($debugObject)) {
            $this->debug = new Debug();
        } else {
            $this->debug = $debugObject;
        }
        $this->debug->start();

        return $this;
    }
214908
public CliCommandBuilder setController(final String hostname, final int port) {
        setController(formatAddress(null, hostname, port));
        return this;
    }