Well, hook up the serial port to some software, and watch for the error message indicating exactly which line is causing trouble..