Debug config done. Works in debug mode.