MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / main

Function main

tests_python/resources/_debugger_case_scoped_stepping.py:125–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124
125async def main():
126 SCOPED_STEPPING_TARGET = os.getenv('SCOPED_STEPPING_TARGET', '_debugger_case_scoped_stepping_target.py')
127 filename = os.path.join(os.path.dirname(__file__), SCOPED_STEPPING_TARGET)
128 assert os.path.exists(filename), '%s does not exist.' % (filename,)
129 with open(filename, 'r') as stream:
130 source = stream.read()
131 code_ast = compile(
132 source,
133 filename,
134 'exec',
135 PyCF_DONT_IMPLY_DEDENT | PyCF_ONLY_AST | PyCF_ALLOW_TOP_LEVEL_AWAIT,
136 1)
137
138 runner = Runner()
139 await runner.run_ast_nodes(code_ast.body, filename)
140
141
142if __name__ == '__main__':

Calls 4

run_ast_nodesMethod · 0.95
RunnerClass · 0.85
joinMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected