from ParseTreeTransforms import DebugTransform
self.debug_outputwriter = DebugWriter.CythonDebugWriter(
options.output_dir)
- debug_transform = [DebugTransform(self, options)]
+ debug_transform = [DebugTransform(self, options, result)]
else:
debug_transform = []
to enable debugging.
"""
- def __init__(self, context, options):
+ def __init__(self, context, options, result):
super(DebugTransform, self).__init__(context)
self.visited = set()
# our treebuilder and debug output writer
# (see Cython.Debugger.debug_output.CythonDebugWriter)
self.tb = self.context.debug_outputwriter
- self.c_output_file = options.output_file
+ #self.c_output_file = options.output_file
+ self.c_output_file = result.c_file
# tells visit_NameNode whether it should register step-into functions
self.register_stepinto = False
kw['pretty_print'] = True
fn = "cython_debug_info_" + self.module_name
- et.write(os.path.join(self.output_dir, fn), encoding="UTF-8", **kw)
\ No newline at end of file
+ et.write(os.path.join(self.output_dir, fn), encoding="UTF-8", **kw)