How do I pinpoint where the error is in Applescript?

Whenever I got an error from osascript, it looks like this:
698:699: syntax error: Expected end of line, etc. but found identifier. (-2741)

How can I figure out where this error is (a general approach)? I don’t have 698 lines in my code, and commenting every line out isn’t very practical.