MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / test_exception_on_dir

Function test_exception_on_dir

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

Source from the content-addressed store, hash-verified

2468
2469
2470def test_exception_on_dir(case_setup_dap):
2471 with case_setup_dap.test_file("_debugger_case_dir_exception.py") as writer:
2472 json_facade = JsonFacade(writer)
2473
2474 writer.write_add_breakpoint(writer.get_line_index_with_content("Break here"))
2475 json_facade.write_make_initial_run()
2476
2477 json_hit = json_facade.wait_for_thread_stopped()
2478 json_hit = json_facade.get_stack_as_json_hit(json_hit.thread_id)
2479
2480 variables_response = json_facade.get_variables_response(json_hit.frame_id)
2481
2482 variables_references = json_facade.pop_variables_reference(variables_response.body.variables)
2483 variables_response = json_facade.get_variables_response(variables_references[0])
2484 assert variables_response.body.variables == [
2485 {"variablesReference": 0, "type": "int", "evaluateName": "self.__dict__[var1]", "name": "var1", "value": "10"}
2486 ]
2487
2488 json_facade.write_continue()
2489 writer.finished_ok = True
2490
2491
2492@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 10

get_stack_as_json_hitMethod · 0.95
write_continueMethod · 0.95
JsonFacadeClass · 0.85
test_fileMethod · 0.80
write_add_breakpointMethod · 0.80

Tested by

no test coverage detected