[pywin32-checkins] pywin32/com/win32com/server dispatcher.py,1.1,1.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-07-26 14:15:35
|
Update of /cvsroot/pywin32/pywin32/com/win32com/server In directory sc8-pr-cvs1:/tmp/cvs-serv7123 Modified Files: dispatcher.py Log Message: The (apparently unused) debugger hooks still used win32dbg as the default Pythonwin debugger. Index: dispatcher.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/server/dispatcher.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** dispatcher.py 1 Sep 1999 23:01:43 -0000 1.1 --- dispatcher.py 26 Jul 2003 14:15:32 -0000 1.2 *************** *** 188,196 **** when an unexpected exception occurs. ! Requires the win32dbg package. """ def __init__(self, policyClass, ob): ! import win32dbg ! win32dbg.brk() # DEBUGGER Note - You can either: # * Hit Run and wait for a (non Exception class) exception to occur! --- 188,196 ---- when an unexpected exception occurs. ! Requires Pythonwin. """ def __init__(self, policyClass, ob): ! import pywin.debugger ! pywin.debugger.brk() # DEBUGGER Note - You can either: # * Hit Run and wait for a (non Exception class) exception to occur! *************** *** 200,207 **** def _HandleException_(self): ! """ Invoke the win32dbg post mortem capability """ # Save details away. typ, val, tb = exc_info() ! import win32dbg, win32dbg.dbgcon debug = 0 try: --- 200,207 ---- def _HandleException_(self): ! """ Invoke the debugger post mortem capability """ # Save details away. typ, val, tb = exc_info() ! import pywin.debugger, pywin.debugger.dbgcon debug = 0 try: *************** *** 210,219 **** # Use some inside knowledge to borrow a Debugger option which dictates if we # stop at "expected" exceptions. ! debug = win32dbg.GetDebugger().get_option(win32dbg.dbgcon.OPT_STOP_EXCEPTIONS) except: debug = 1 if debug: try: ! win32dbg.post_mortem(tb, typ, val) # The original exception except: traceback.print_exc() --- 210,219 ---- # Use some inside knowledge to borrow a Debugger option which dictates if we # stop at "expected" exceptions. ! debug = pywin.debugger.GetDebugger().get_option(pywin.debugger.dbgcon.OPT_STOP_EXCEPTIONS) except: debug = 1 if debug: try: ! pywin.debugger.post_mortem(tb, typ, val) # The original exception except: traceback.print_exc() |