def run(self):
                import pydev_localhost

                print('Starting server with:', pydev_localhost.get_localhost(),
                      self.server_port, self.client_port)
                pydevconsole.StartServer(pydev_localhost.get_localhost(),
                                         self.server_port, self.client_port)
Exemplo n.º 2
0
 def run(self):
     import pydev_localhost
     pydevconsole.StartServer(pydev_localhost.get_localhost(),
                              self.server_port, self.client_port)
Exemplo n.º 3
0
 def run(self):
     pydevconsole.StartServer('localhost', self.server_port,
                              self.client_port)
Exemplo n.º 4
0
    except SystemExit:
        raise
    except:
        interpreter.showtraceback()

    return False


#=======================================================================================================================
# main
#=======================================================================================================================
if __name__ == '__main__':
    #Important: don't use this module directly as the __main__ module, rather, import itself as pydevconsole
    #so that we don't get multiple pydevconsole modules if it's executed directly (otherwise we'd have multiple
    #representations of its classes).
    #See: https://sw-brainwy.rhcloud.com/tracker/PyDev/446:
    #'Variables' and 'Expressions' views stopped working when debugging interactive console
    import pydevconsole
    sys.stdin = pydevconsole.BaseStdIn()
    port, client_port = sys.argv[1:3]
    import pydev_localhost

    if int(port) == 0 and int(client_port) == 0:
        (h, p) = pydev_localhost.get_socket_name()

        client_port = p

    pydevconsole.StartServer(pydev_localhost.get_localhost(), int(port),
                             int(client_port))