Friday, 15 June 2012

javascript - Exception line-number in Jscript-ASP -


I am developing a website with server side jscript engine on ASP server.

Many of my code are trying to try the try-breaking segments in this way:

  try {// do something} hold (mistake) {// It's a front end code ("exception caught" err.description); }  

I would like to display the line number that had the error. The filename would be a good bonus but it is not very important how can it be done?

Thank you!

error type (type ASPError) has line and file properties - just what you want (more Look for properties).


No comments:

Post a Comment