debug_coercion = 0
# Write comments into the C code that show where temporary variables
-# are allocated and released
+# are allocated and released.
debug_temp_code_comments = 0
-# Write a call trace of the code generation phase into the C code
+# Write a call trace of the code generation phase into the C code.
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
-# Print a message each time a new stage in the pipeline is entered
+# Print a message each time a new stage in the pipeline is entered.
debug_verbose_pipeline = 0
+
+# Raise an exception when an error is encountered.
+debug_exception_on_error = 0
import sys
from Cython.Utils import open_new_file
+from DebugFlags import debug_exception_on_error
class PyrexError(Exception):
if position is None:
raise InternalError(message)
err = CompileError(position, message)
- #if position is not None: raise Exception(err) # debug
+ if debug_exception_on_error: raise Exception(err) # debug
report_error(err)
return err