Disable chunk discarding on debug, close #1780