(case_setup_dap)
| 2468 | |
| 2469 | |
| 2470 | def 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( |
nothing calls this directly
no test coverage detected