~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/HACKING.txt

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-20 11:49:38 UTC
  • mfrom: (6082.3.4 412201-mv-case-insensitive)
  • Revision ID: pqm@pqm.ubuntu.com-20110820114938-wwxmzhexrielxpq3
(vila) Allow blackbox tests and test scripts interactive debugging. (Vincent
 Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
436
436
be disabled if necessary by setting the environment variable
437
437
``BZR_SIGQUIT_PDB=0``.
438
438
 
 
439
All tests inheriting from bzrlib.tests.TestCase can use ``self.debug()``
 
440
instead of the longer ``import pdb; pdb.set_trace()``. The former also works
 
441
when ``stdin/stdout`` are redirected (by using the original ``stdin/stdout``
 
442
file handles at the start of the ``bzr`` script) while the later doesn't.
 
443
``bzrlib.debug.set_trace()`` also uses the original ``stdin/stdout`` file
 
444
handles.
439
445
 
440
446
Debug Flags
441
447
===========