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

Function test_variable_presentation

tests_python/test_debugger_json.py:6027–6042  ·  view source on GitHub ↗
(case_setup_dap, var_presentation, check_func)

Source from the content-addressed store, hash-verified

6025 ],
6026)
6027def test_variable_presentation(case_setup_dap, var_presentation, check_func):
6028 with case_setup_dap.test_file("_debugger_case_globals.py") as writer:
6029 json_facade = JsonFacade(writer)
6030 json_facade.write_launch(variablePresentation=var_presentation)
6031 json_facade.write_set_breakpoints(writer.get_line_index_with_content("breakpoint here"))
6032
6033 json_facade.write_make_initial_run()
6034 json_hit = json_facade.wait_for_thread_stopped()
6035 name_to_scope = json_facade.get_name_to_scope(json_hit.frame_id)
6036
6037 variables_response = json_facade.get_variables_response(name_to_scope["Globals"].variablesReference)
6038 check_func(json_facade, json_hit, variables_response)
6039
6040 json_facade.write_continue()
6041
6042 writer.finished_ok = True
6043
6044
6045def test_debugger_case_deadlock_thread_eval(case_setup_dap):

Callers

nothing calls this directly

Calls 10

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

Tested by

no test coverage detected