Debugging a bazaar plugin

Jelmer Vernooij jelmer at samba.org
Fri Feb 9 16:17:58 GMT 2007


On Fri, 2007-02-09 at 15:28 +0100, Nicholas Allen wrote:
> I'm looking at contributing to the bzr-svn plugin when I have time as I 
> want to get it to a state that we can use it to branch one of our svn 
> projects. But I have a question: how do you debug a bazaar plugin? I 
> managed to get Eclipse PyDev installed and it seems to be the best free 
> Python IDE that I have tried. Do I need to do anything special in order 
> to debug a plugin? Any tips/other tool ideas appreciated...
My development style for bzr-svn is basically like this:

 * Determine new behaviour that is needed
 * Write a couple of tests that test whether this behaviour is present
(simple as well as some more advanced tests that cover corner cases)
 * Implement feature until all tests pass
 * Test on "real world" repositories, maybe extend the testsuite a bit
more if I see more corner cases

If somebody has a bug that I can reproduce, I export BZR_PDB=pdb2.5 and
then run bzr with the command that is failing. I then try to add a
minimal subset of code that reproduces the bug and then fix the code to
make that test pass.

Hope this helps,

Cheers,

Jelmer
-- 
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070209/83a4ed74/attachment.pgp 


More information about the bazaar mailing list