Lines Matching full:pdb
1 # A test suite for pdb; at the moment, this only validates skipping of
12 # This little helper class is essential for testing pdb under doctest.
19 """Run 'script' lines with pdb and the pdb 'commands'."""
24 cmd = [sys.executable, '-m', 'pdb', filename]
85 """Context manager that makes testing Pdb in doctests easier."""
102 """This tests the custom displayhook for pdb.
105 ... import pdb; pdb.Pdb().set_trace()
117 (Pdb) foo
119 (Pdb) bar
120 (Pdb) for i in range(5): write(i)
126 (Pdb) continue
133 ... import pdb; pdb.Pdb().set_trace()
178 (Pdb) break 3
180 (Pdb) disable 1
181 (Pdb) ignore 1 10
183 (Pdb) condition 1 1 < 2
184 (Pdb) break 4
186 (Pdb) break 4
188 (Pdb) break
195 (Pdb) clear 3
197 (Pdb) break
203 (Pdb) condition 1
205 (Pdb) enable 1
206 (Pdb) clear 1
208 (Pdb) commands 2
211 (Pdb) continue
216 (Pdb) clear
218 (Pdb) tbreak 5
220 (Pdb) continue
225 (Pdb) break
226 (Pdb) continue
237 ... import pdb; pdb.Pdb(skip=['string*']).set_trace()
247 (Pdb) step
251 (Pdb) continue
266 ... import pdb; pdb.Pdb(skip=['module_to_skip*']).set_trace()
281 (Pdb) step
285 (Pdb) step
288 (Pdb) step
292 (Pdb) step
296 (Pdb) step
299 (Pdb) continue
307 ... import pdb, sys; inst = pdb.Pdb()
334 (Pdb) next
337 (Pdb) break 7
339 (Pdb) continue
344 (Pdb) next
348 (Pdb) continue
364 code = 'print("testing pdb")'
368 cmd = [sys.executable, '-m', 'pdb', test_fn,]
375 self.assertIn(code, stdout, "pdb munged the filename")