File: //kunden/lib/python3/dist-packages/breezy/__pycache__/debug.cpython-39.pyc
a
���^: � @ s* d Z ddlmZ e� Zdd� Zdd� ZdS )a
Set of flags that enable different debug behaviour.
These are set with eg ``-Dlock`` on the bzr command line or in
~/.config/breezy/breezy.conf debug_flags.
See `bzr help debug-flags` or `breezy/help_topics/en/debug-flags.txt`
for a list of the available options.
� )�absolute_importc C s2 ddl m} | �� }|�d�D ]}t�|� qdS )z5Turn on debug flags based on the global configurationr )�config�debug_flagsN)Zbreezyr ZGlobalStack�getr �add)r �c�f� r �./usr/lib/python3/dist-packages/breezy/debug.py�set_debug_flags_from_config s r c C s2 ddl } ddl}| j|j|jd��|�� j� dS )ax Pdb using original stdin and stdout.
When debugging blackbox tests, sys.stdin and sys.stdout are captured for
test purposes and cannot be used for interactive debugging. This class uses
the origianl stdin/stdout to allow such use.
Instead of doing:
import pdb; pdb.set_trace()
you can do:
from breezy import debug; debug.set_trace()
r N)�stdin�stdout)�pdb�sysZPdb� __stdin__�
__stdout__� set_trace� _getframe�f_back)r r r r r
r ) s
�r N)�__doc__Z
__future__r �setr r r r r r r
�<module> s