[ticket/12620] Rename debug to development

PHPBB3-12620
[ticket/12620] Improve error message

PHPBB3-12620