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

Method report_sockets

src/debugpy/adapter/clients.py:714–730  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

712 super().disconnect()
713
714 def report_sockets(self):
715 socks = [
716 {
717 "host": host,
718 "port": port,
719 "internal": listener is not clients.listener,
720 }
721 for listener in [clients.listener, launchers.listener, servers.listener]
722 if listener is not None
723 for (host, port) in [sockets.get_address(listener)]
724 ]
725 self.channel.send_event(
726 "debugpySockets",
727 {
728 "sockets": socks
729 },
730 )
731
732 def notify_of_subprocess(self, conn):
733 log.info("{1} is a subprocess of {0}.", self, conn)

Callers 7

report_socketsFunction · 0.80
spawn_debuggeeFunction · 0.80
serveFunction · 0.80
stop_servingFunction · 0.80
__init__Method · 0.80
serveFunction · 0.80
stop_servingFunction · 0.80

Calls 2

get_addressMethod · 0.80
send_eventMethod · 0.80

Tested by

no test coverage detected