Property changes on: .
___________________________________________________________________
Name: svn:ignore
- build
dist
*.egg-info
MANIFEST
*.pyc
+ build
dist
*.egg-info
MANIFEST
*.pyc
.project
.pydevproject
|
|
|
354 | 354 | """ |
355 | 355 | def __init__(self, out): |
356 | 356 | self.__out = out |
| 357 | self.__debugger_used = False |
357 | 358 | pdb.Pdb.__init__(self) |
358 | 359 | |
| 360 | def set_trace(self): |
| 361 | self.__debugger_used = True |
| 362 | pdb.Pdb.set_trace(self) |
| 363 | |
| 364 | def set_continue(self): |
| 365 | # Calling set_continue unconditionally would break unit test coverage |
| 366 | # reporting, as Bdb.set_continue calls sys.settrace(None). |
| 367 | if self.__debugger_used: |
| 368 | pdb.Pdb.set_continue(self) |
| 369 | |
| 370 | |
359 | 371 | def trace_dispatch(self, *args): |
360 | 372 | # Redirect stdout to the given stream. |
361 | 373 | save_stdout = sys.stdout |