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

Method request

src/debugpy/adapter/servers.py:291–299  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

289 # Generic request handler, used if there's no specific handler below.
290 @message_handler
291 def request(self, request):
292 # Do not delegate requests from the server by default. There is a security
293 # boundary between the server and the adapter, and we cannot trust arbitrary
294 # requests sent over that boundary, since they may contain arbitrary code
295 # that the client will execute - e.g. "runInTerminal". The adapter must only
296 # propagate requests that it knows are safe.
297 raise request.isnt_valid(
298 "Requests from the debug server to the client are not allowed."
299 )
300
301 # Generic event handler, used if there's no specific handler below.
302 @message_handler

Callers 5

_finalizeMethod · 0.45
terminate_debuggeeMethod · 0.45
spawn_debuggeeFunction · 0.45
__init__Method · 0.45
authenticateMethod · 0.45

Calls 1

isnt_validMethod · 0.80

Tested by

no test coverage detected