
                         P    S r SSKrSSKr\R                  " SSS5        SqS rS rg)zImport this module to add a hook to call pdb on uncaught exceptions.

To enable this, do the following in your top-level application:

import google.apputils.debug

and then in your main():

google.apputils.debug.Init()

Then run your program with --pdb.
    Npdbz$Drop into pdb on uncaught exceptionsc                 ,   [         R                  R                  (       a8  [        [        S5      (       d#  [        R
                  R                  5       (       d  [        XU5        g SS KnSS KnUR                  XU5        [          UR                  5         g )Nps1r   )flagsFLAGSr   hasattrsysstderrisattyold_excepthook	tracebackprint_exceptionprintpm)	exc_classvaluetbr   r   s        0platform/bq/third_party/google/apputils/debug.py_DebugHandlerr   (   s[    	GC//szz7H7H7J7J 9R( i3	FFH    c                  B    [         R                  q[        [         l        g )N)r	   
excepthookr   r    r   r   Initr   8   s     >>. #.r   )__doc__r	   gflagsr   DEFINE_booleanr   r   r   r   r   r   <module>r      s4         UAE F !r   