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

Function _attach_common_config

tests/debug/runners.py:151–160  ·  view source on GitHub ↗
(session, target, cwd)

Source from the content-addressed store, hash-verified

149
150
151def _attach_common_config(session, target, cwd):
152 assert (
153 target.code is None or "debuggee.setup()" in target.code
154 ), f"{target.filename} must invoke debuggee.setup()."
155
156 target.configure(session)
157 config = session.config
158 if cwd is not None:
159 config.setdefault("pathMappings", [{"localRoot": cwd, "remoteRoot": "."}])
160 return config
161
162
163@_runner

Callers 3

attach_pidFunction · 0.85
attach_connectFunction · 0.85
attach_listenFunction · 0.85

Calls 2

configureMethod · 0.45
setdefaultMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…