Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib/python3.5/site-packages/google/apputils/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/google/apputils/__pycache__/debug.cpython-35.pyc



A��]@�@sSdZddlZddlZejddd�dadd�Zdd�ZdS)	z�Import 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 exceptionscCs�tjjs,ttd�s,tjj�r?t|||�nEddl}ddl}|j	|||�tj
jd�|j�dS)NZps1r�
)
�flags�FLAGSr�hasattr�sys�stderr�isatty�old_excepthook�	traceback�print_exception�stdout�writeZpm)Z	exc_class�value�tbrr�r�F/opt/alt/python35/lib/python3.5/site-packages/google/apputils/debug.py�
_DebugHandler)s,rcCs"tdkrtjatt_dS)N)r
r�
excepthookrrrrr�Init9s	r)�__doc__rZgflagsrZDEFINE_booleanr
rrrrrr�<module>s