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

Function test_case_exclude_double_step

tests_python/test_debugger_json.py:1616–1635  ·  view source on GitHub ↗
(case_setup_dap)

Source from the content-addressed store, hash-verified

1614
1615
1616def test_case_exclude_double_step(case_setup_dap):
1617 with case_setup_dap.test_file("my_code/my_code_double_step.py") as writer:
1618 json_facade = JsonFacade(writer)
1619 json_facade.write_launch(
1620 justMyCode=False, # i.e.: exclude through rules and not my code
1621 rules=[
1622 {"path": "**/other_noop.py", "include": False},
1623 ],
1624 )
1625
1626 break_line = writer.get_line_index_with_content("break here")
1627 json_facade.write_set_breakpoints(break_line)
1628 json_facade.write_make_initial_run()
1629
1630 json_hit = json_facade.wait_for_thread_stopped(line=break_line)
1631 json_facade.write_step_in(json_hit.thread_id)
1632 json_hit = json_facade.wait_for_thread_stopped("step", file="my_code_double_step.py", line=break_line + 1)
1633
1634 json_facade.write_continue()
1635 writer.finished_ok = True
1636
1637
1638def test_case_update_rules(case_setup_dap):

Callers

nothing calls this directly

Calls 9

write_launchMethod · 0.95
write_set_breakpointsMethod · 0.95
write_step_inMethod · 0.95
write_continueMethod · 0.95
JsonFacadeClass · 0.85
test_fileMethod · 0.80

Tested by

no test coverage detected