Part of bzrlib
These are set with eg -Dlock on the bzr command line or in ~/.bazaar/bazaar.conf debug_flags.
See bzr help debug-flags
or bzrlib/help_topics/en/debug-flags.txt
for a list of the available options.
Function | set_debug_flags_from_config | Turn on debug flags based on the global configuration |
Function | set_trace | Pdb using original stdin and stdout. |
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 bzrlib import debug; debug.set_trace()