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

Method _process_response

tests/debug/session.py:678–691  ·  view source on GitHub ↗
(self, request, response)

Source from the content-addressed store, hash-verified

676 raise request.isnt_valid("not supported")
677
678 def _process_response(self, request, response):
679 self.timeline.record_response(request, response, block=False)
680 if request.command == "disconnect":
681 # Stop the message loop, since debugpy is going to close the connection
682 # from its end shortly after sending this event, and no further messages
683 # are expected.
684 log.info(
685 'Received "disconnect" response from {0}; stopping message processing.',
686 self.adapter_id,
687 )
688 try:
689 self.channel.close()
690 except Exception:
691 pass
692
693 def _process_disconnect(self):
694 self.timeline.mark("disconnect", block=False)

Callers 1

send_requestMethod · 0.95

Calls 3

record_responseMethod · 0.80
infoMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected