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

Function test_cli_options_under_file_connect

tests/debugpy/test_cli_args.py:15–35  ·  view source on GitHub ↗
(pyfile, target, run)

Source from the content-addressed store, hash-verified

13
14
15def test_cli_options_under_file_connect(pyfile, target, run):
16 @pyfile
17 def code_to_debug():
18 import dataclasses
19 import debugpy
20
21 import debuggee
22 from debuggee import backchannel
23
24 debuggee.setup()
25 backchannel.send(dataclasses.asdict(debugpy.get_cli_options()))
26
27 with debug.Session() as session:
28 backchannel = session.open_backchannel()
29
30 with run(session, target(code_to_debug)):
31 pass
32
33 cli_options = backchannel.receive()
34 assert cli_options['mode'] == 'connect'
35 assert cli_options['target_kind'] == 'file'

Callers

nothing calls this directly

Calls 4

open_backchannelMethod · 0.80
receiveMethod · 0.80
runFunction · 0.70
targetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…