pybedtools.debug_mode

pybedtools.debug_mode(x)[source]

Enable debug mode.

Use debug_mode(True) to show debug log events in the console and to save calling info in BedTool objects, and turn it off again with debug_mode(False).

Note that pybedtools.KEEP_TEMPFILES will be set as well, so you will need to clean up the tempfile directory manually after using debug mode.