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

Method __init__

src/debugpy/common/messaging.py:648–664  ·  view source on GitHub ↗
(self, channel, seq, command, arguments, json=None)

Source from the content-addressed store, hash-verified

646 """
647
648 def __init__(self, channel, seq, command, arguments, json=None):
649 super().__init__(channel, seq, json)
650
651 self.command = command
652
653 if isinstance(arguments, MessageDict) and hasattr(arguments, "associate_with"):
654 arguments.associate_with(self)
655 self.arguments = arguments
656
657 self.response = None
658 """Response to this request.
659
660 For incoming requests, it is set as soon as the request handler returns.
661
662 For outgoing requests, it is set as soon as the response is received, and
663 before self._handle_response is invoked.
664 """
665
666 def describe(self):
667 return f"#{self.seq} request {json.repr(self.command)} from {self.channel}"

Callers

nothing calls this directly

Calls 2

associate_withMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected