don't commit debug code, fixes #6956