MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / ServerThread

Class ServerThread

tests/test_check_pydevconsole.py:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 client_port, server_port = self.get_free_addresses()
80
81 class ServerThread(threading.Thread):
82 def __init__(self, client_port, server_port):
83 threading.Thread.__init__(self)
84 self.client_port = client_port
85 self.server_port = server_port
86
87 def run(self):
88 from _pydev_bundle import pydev_localhost
89
90 print("Starting server with:", pydev_localhost.get_localhost(), self.server_port, self.client_port)
91 pydevconsole.start_server(pydev_localhost.get_localhost(), self.server_port, self.client_port)
92
93 server_thread = ServerThread(client_port, server_port)
94 server_thread.daemon = True

Callers 1

test_serverMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_serverMethod · 0.56