Added config debug param for throw require's errors