Adds ifdef for debug code