MCPcopy Create free account
hub / github.com/microsoft/debugpy / receive

Method receive

tests/debug/comms.py:70–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 self._established.set()
69
70 def receive(self):
71 log.info("{0} waiting for connection to be established...", self)
72 if not self._established.wait(timeout=self.TIMEOUT):
73 log.error("{0} timed out waiting for connection after {1} seconds", self, self.TIMEOUT)
74 raise TimeoutError(f"{self} timed out waiting for debuggee to connect")
75 log.info("{0} connection established, reading JSON...", self)
76 result = self._stream.read_json()
77 log.info("{0} received: {1}", self, result)
78 return result
79
80 def send(self, value):
81 self.session.timeline.unfreeze()

Callers 15

code_to_debugFunction · 0.80
test_with_path_mappingsFunction · 0.80
test_set_variableFunction · 0.80
test_set_expressionFunction · 0.80
test_stop_on_entryFunction · 0.80
test_argsFunction · 0.80
test_shell_expansionFunction · 0.80
code_to_debugFunction · 0.80

Calls 5

infoMethod · 0.80
errorMethod · 0.80
TimeoutErrorClass · 0.50
waitMethod · 0.45
read_jsonMethod · 0.45

Tested by 15

code_to_debugFunction · 0.64
test_with_path_mappingsFunction · 0.64
test_set_variableFunction · 0.64
test_set_expressionFunction · 0.64
test_stop_on_entryFunction · 0.64
test_argsFunction · 0.64
test_shell_expansionFunction · 0.64
code_to_debugFunction · 0.64