Debugging a bazaar plugin
Aaron Bentley
aaron.bentley at utoronto.ca
Fri Feb 9 14:50:30 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Nicholas Allen wrote:
> Hi,
>
> 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...
One thing is, if your plugin fails to load, see ~/.bzr.log. That will
show the traceback.
John's already mentioned pdb. Another thing is that plugins can be part
of the bzr test suite; they just need to define
"$PLUGIN_NAME.test_suite". You can test just your plugin by doing "bzr
selftest $PLUGIN_NAME".
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFFzIo10F+nu1YWqI0RAqeqAJ0VbXOixR3TmounEzSrd6iJqOOEWwCfXjDV
j9nTTkSUN7OYLT77tQvXfnc=
=6vkk
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list