It's not a glitch but a debug feature. You have to press 'plus heart' button below the pause button or 'E' key if you are playing on PC.