(session, target, cwd)
| 149 | |
| 150 | |
| 151 | def _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 |
no test coverage detected
searching dependent graphs…