Comment 1 for bug 391934

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 391934] [NEW] want debugger integration with selftest

On Thu, 2009-06-25 at 04:33 +0000, Martin Pool wrote:
> Public bug reported:
>
> It would be nice if bzr selftest could automatically pop into the pdb
> debugger: before running each (selected test) and/or after test failure.
>
> Or is there already some easy way to get this? (Easier than editing the
> test source to call pdb.)

I don't think we expose this in the UI, but the python test protocol has
'debug()', which is meant to be run from pdb or similar - it is meant to
run the same tests but with the expectation that a debug will catch
exceptions rather than forwarding them to a reporter object.

I think a better way to structure it would be to have a reporter than
uses pdb.post_mortem, myself.

-Rob