help="Sets the flags for debug output (-FLAG disables a flag)")
option("--debug-start", metavar="TICK", type='int',
help="Start debug output at TICK")
+ option("--debug-end", metavar="TICK", type='int',
+ help="End debug output at TICK")
option("--debug-file", metavar="FILE", default="cout",
help="Sets the output file for debug [Default: %default]")
option("--debug-ignore", metavar="EXPR", action='append', split=':',
else:
trace.enable()
+ if options.debug_end:
+ check_tracing()
+ e = event.create(trace.disable, event.Event.Debug_Enable_Pri)
+ event.mainq.schedule(e, options.debug_end)
+
trace.output(options.debug_file)
for ignore in options.debug_ignore: