(4 secs) The solution is to add file and line numbers to all of your string evals.
Note that if you are using a here document, you should add 1 to the line argument, because the string starts on the line after the line that calls the eval method.