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

Function serve

src/debugpy/adapter/servers.py:394–398  ·  view source on GitHub ↗
(host="127.0.0.1", port=0)

Source from the content-addressed store, hash-verified

392
393
394def serve(host="127.0.0.1", port=0):
395 global listener
396 listener = sockets.serve("Server", Connection, host, port)
397 sessions.report_sockets()
398 return sockets.get_address(listener)
399
400
401def is_serving():

Callers

nothing calls this directly

Calls 2

report_socketsMethod · 0.80
get_addressMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…