[Buildbot-devel] Running BB in foreground (for debugging)

Jean-Paul Calderone exarkun at divmod.com
Fri Oct 19 22:26:51 UTC 2007


On Fri, 19 Oct 2007 17:55:40 -0400, Greg Ward <gerg.ward+buildbot at gmail.com> wrote:
>I'm trying to debug a patch (http://buildbot.net/trac/ticket/56 seems
>to have a small incompatibility with 0.7.6).  In particular, I'd like
>to hack in
>
>  import pdb ; pdb.set_trace()
>
>lines to drop into the debugger at my desired place.  But "buildbot
>start ." goes into the background, at least on Unix.  Is there a nice
>way to run it in the foreground (as it does on Windows by default)?

If you run it with `twistd´ instead of `buildbot´, then you get all of
the twistd command line options, including debugger integration.  AIUI
`buildbot start .´ basically translates into something like `twistd -oy
master/buildbot.tac´.  Change this to `twistd -by master/buildbot.tac´
and you'll get a much better pdb experience.

Jean-Paul




More information about the devel mailing list