HEX
Server: Apache
System: Linux infong-uk86 4.4.400-icpu-106 #2 SMP Mon Sep 15 08:23:40 UTC 2025 x86_64
User: u44115835 (4976590)
PHP: 8.4.17
Disabled: NONE
Upload Files
File: //kunden/lib/python3/dist-packages/breezy/__pycache__/debug.cpython-39.pyc
a

���^:�@s*dZddlmZe�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_importcCs2ddlm}|��}|�d�D]}t�|�qdS)z5Turn on debug flags based on the global configurationr)�config�debug_flagsN)ZbreezyrZGlobalStack�getr�add)r�c�f�r	�./usr/lib/python3/dist-packages/breezy/debug.py�set_debug_flags_from_configsrcCs2ddl}ddl}|j|j|jd��|��j�dS)axPdb 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()
    rN)�stdin�stdout)�pdb�sysZPdb�	__stdin__�
__stdout__�	set_trace�	_getframe�f_back)rrr	r	r
r)s
�rN)�__doc__Z
__future__r�setrrrr	r	r	r
�<module>s