Commit 3b0a3e59 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

debug_verbose_pipeline flag added

parent 21094547
...@@ -11,3 +11,6 @@ debug_trace_code_generation = 0 ...@@ -11,3 +11,6 @@ debug_trace_code_generation = 0
# Do not replace exceptions with user-friendly error messages # Do not replace exceptions with user-friendly error messages
debug_no_exception_intercept = 0 debug_no_exception_intercept = 0
# Print a message each time a new stage in the pipeline is entered
debug_verbose_pipeline = 0
...@@ -24,6 +24,7 @@ from Symtab import BuiltinScope, ModuleScope ...@@ -24,6 +24,7 @@ from Symtab import BuiltinScope, ModuleScope
from Cython import Utils from Cython import Utils
from Cython.Utils import open_new_file, replace_suffix from Cython.Utils import open_new_file, replace_suffix
import CythonScope import CythonScope
import DebugFlags
module_name_pattern = re.compile(r"[A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*$") module_name_pattern = re.compile(r"[A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*$")
...@@ -196,6 +197,8 @@ class Context(object): ...@@ -196,6 +197,8 @@ class Context(object):
try: try:
for phase in pipeline: for phase in pipeline:
if phase is not None: if phase is not None:
if DebugFlags.debug_verbose_pipeline:
print "Entering pipeline phase %r" % phase
data = phase(data) data = phase(data)
except CompileError, err: except CompileError, err:
# err is set # err is set
......
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