Add attribute for debug mode

This allows you to enable the full debug error messages