Added a sysconfig variable for global error debugging in ErrorHandler.