for debug=2 validate records and print a warning in case of problems.