Commit c64741f4 authored by Fred Drake's avatar Fred Drake

make "zopectl fg" turn on debug mode

parent ff3863cf
...@@ -147,6 +147,14 @@ class ZopeCmd(ZDCmd): ...@@ -147,6 +147,14 @@ class ZopeCmd(ZDCmd):
'Zope object)') 'Zope object)')
os.system(cmdline) os.system(cmdline)
def do_foreground(self, arg):
self.options.program[1:1] = ["-X", "debug-mode=on"]
try:
ZDCmd.do_foreground(self, arg)
finally:
self.options.program.remove("-X")
self.options.program.remove("debug-mode=on")
def help_debug(self): def help_debug(self):
print "debug -- run the Zope debugger to inspect your database" print "debug -- run the Zope debugger to inspect your database"
print " manually using a Python interactive shell" print " manually using a Python interactive shell"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment