b.debug : module documentation

Part of bzrlib

Set of flags that enable different debug behaviour.

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.
def set_debug_flags_from_config():
Turn on debug flags based on the global configuration
def set_trace():

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()
API Documentation for Bazaar, generated by pydoctor at 2019-10-20 00:34:54.