(pyfile, target, run)
| 102 | |
| 103 | |
| 104 | def test_crossfile_breakpoint(pyfile, target, run): |
| 105 | @pyfile |
| 106 | def script1(): |
| 107 | import debuggee |
| 108 | |
| 109 | debuggee.setup() |
| 110 | |
| 111 | def do_something(): |
| 112 | print("do something") # @bp |
| 113 | |
| 114 | @pyfile |
| 115 | def script2(): |
| 116 | import debuggee |
| 117 | import script1 |
| 118 | |
| 119 | debuggee.setup() |
| 120 | script1.do_something() # @bp |
| 121 | print("Done") |
| 122 | |
| 123 | with debug.Session() as session: |
| 124 | with run(session, target(script2)): |
| 125 | session.set_breakpoints(script1, all) |
| 126 | session.set_breakpoints(script2, all) |
| 127 | |
| 128 | session.wait_for_stop(expected_frames=[some.dap.frame(script2, line="bp")]) |
| 129 | session.request_continue() |
| 130 | |
| 131 | session.wait_for_stop(expected_frames=[some.dap.frame(script1, line="bp")]) |
| 132 | session.request_continue() |
| 133 | |
| 134 | |
| 135 | # NameError in condition is a special case: pydevd is configured to skip traceback for |
nothing calls this directly
no test coverage detected
searching dependent graphs…