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

Method propagate

src/debugpy/common/messaging.py:1269–1278  ·  view source on GitHub ↗

Sends a new message with the same type and payload. If it was a request, returns the new OutgoingRequest object for it.

(self, message)

Source from the content-addressed store, hash-verified

1267 return self.send_request(*args, **kwargs).wait_for_response()
1268
1269 def propagate(self, message):
1270 """Sends a new message with the same type and payload.
1271
1272 If it was a request, returns the new OutgoingRequest object for it.
1273 """
1274 assert message.is_request() or message.is_event()
1275 if message.is_request():
1276 return self.send_request(message.command, message.arguments)
1277 else:
1278 self.send_event(message.event, message.body)
1279
1280 def delegate(self, message):
1281 """Like propagate(message).wait_for_response(), but will also propagate

Callers 9

delegateMethod · 0.95
spawn_debuggeeFunction · 0.45
initializeMethod · 0.45
propagate_after_startMethod · 0.45
eventMethod · 0.45
handleMethod · 0.45
evaluate_requestMethod · 0.45
lock_and_handleMethod · 0.45

Calls 4

send_requestMethod · 0.95
send_eventMethod · 0.95
is_requestMethod · 0.80
is_eventMethod · 0.80

Tested by

no test coverage detected