Handles the next debug event. @see: L{cont}, L{dispatch}, L{wait}, L{stop} @raise WindowsError: Raises an exception on error. If the wait operation causes an error, debugging is stopped (meaning all debugees are either killed or detached from).
(self)
| 1051 | self.force_garbage_collection(bIgnoreExceptions) |
| 1052 | |
| 1053 | def next(self): |
| 1054 | """ |
| 1055 | Handles the next debug event. |
| 1056 | |
| 1057 | @see: L{cont}, L{dispatch}, L{wait}, L{stop} |
| 1058 | |
| 1059 | @raise WindowsError: Raises an exception on error. |
| 1060 | |
| 1061 | If the wait operation causes an error, debugging is stopped |
| 1062 | (meaning all debugees are either killed or detached from). |
| 1063 | |
| 1064 | If the event dispatching causes an error, the event is still |
| 1065 | continued before returning. This may happen, for example, if the |
| 1066 | event handler raises an exception nobody catches. |
| 1067 | """ |
| 1068 | try: |
| 1069 | event = self.wait() |
| 1070 | except Exception: |
| 1071 | self.stop() |
| 1072 | raise |
| 1073 | try: |
| 1074 | self.dispatch() |
| 1075 | finally: |
| 1076 | self.cont() |
| 1077 | |
| 1078 | def loop(self): |
| 1079 | """ |