Safely check settings for DEBUG_STATIC.