[Buildbot-devel] Running BB in foreground (for debugging)
gerg.ward+buildbot at gmail.com
Fri Oct 19 21:55:40 UTC 2007
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)?
BTW, so far I have cobbled together this little hack:
# Run BuildBot in the foreground. Basically the same as
# "buildbot start ." without forking.
# this bit stolen from buildbot.scripts.runner.run()
from buildbot.scripts.runner import Options
config = Options()
# and this bit from buildbot.scripts.startup.start()
from buildbot.scripts.startup import launch
print "launching ..."
print "back from launch()"
...but launch() still goes into the background. Darn.
More information about the devel