Add debug header
Don't display Debug preferences when DEBUG mode is disabled
only display debug header and fragment when DEBUG is enabled