Logging line number of Script Includes

MGanon
Tera Guru

Is it possible to log the line number of a script includes for debugging?

I have a very long Script Includes called during an import transform map. It would be very helpful for debugging to identify some of the specific lines processed. I added several gs.log entries into the Script Includes but it is cumbersome to accurately maintain the gs.log("line number X") when adding lines to or removing lines from the Script Includes. Is there a dynamic function that can more dynamically record the Script Includes line?

6 REPLIES 6

"catch" doesn't work in a Script Includes but thanks anyway.

I was looking for a server-side way to dynamically identify the line location of a server-side script includes. I worked around it though.