Moved debug to platform