PLD: change debug to a debug-api atom stored in a new settings namespace