Pylons/pyramid — Issue #391: More debugging information in stacktraces
Author: postlogic
Created: 2012-01-05 08:55:45+00:00
State: open

When, for instance, there is an error in the development.ini file, it would be helpful to have the line it fails on printed.

(Poor) example:

in development.ini:
pyramid.includes = pyramid_debugtoolbar
webhelpers # this will fail

Partial stacktrace:

File "/home/postlogic/Projects/sluttbrukerkonsoll/sluttbrukerkonsoll/__init__.py", line 36, in main
config = Configurator(settings=settings)
File "/home/postlogic/Projects/env/lib/python2.7/site-packages/pyramid-1.2.5-py2.7.egg/pyramid/config/__init__.py", line 255, in __init__
exceptionresponse_view=exceptionresponse_view,
File "/home/postlogic/Projects/env/lib/python2.7/site-packages/pyramid-1.2.5-py2.7.egg/pyramid/config/__init__.py", line 368, in setup_registry
self.include(inc)
File "/home/postlogic/Projects/env/lib/python2.7/site-packages/pyramid-1.2.5-py2.7.egg/pyramid/config/__init__.py", line 603, in include
c = getattr(module, 'includeme')
AttributeError: 'module' object has no attribute 'includeme'