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

Method run_handlers

src/debugpy/common/messaging.py:813–832  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

811 return
812
813 def run_handlers():
814 for handler in handlers:
815 try:
816 try:
817 handler(response)
818 except MessageHandlingError as exc:
819 if not exc.applies_to(response):
820 raise
821 log.error(
822 "Handler {0}\ncouldn't handle {1}:\n{2}",
823 util.srcnameof(handler),
824 response.describe(),
825 str(exc),
826 )
827 except Exception:
828 log.reraise_exception(
829 "Handler {0}\ncouldn't handle {1}:",
830 util.srcnameof(handler),
831 response.describe(),
832 )
833
834 handlers = self._response_handlers[:]
835 self.channel._enqueue_handlers(response, run_handlers)

Callers

nothing calls this directly

Calls 3

applies_toMethod · 0.80
errorMethod · 0.80
describeMethod · 0.45

Tested by

no test coverage detected