mmkumaram
13 years agoOccasional Contributor
Jscript exception Line number
When an exception caught is it possible to find the line number which caused the exception?.
ex:
try
{
log.Message("Test1");
log.Message("Test2");
log.Message("Test3");
}
catch (e)
{
// Posts an exception message to the test log
Log.Error(e.description);
}
Here if execption occurs on Test2, i get an exception description, but i would like to know the line number as well. Is this possible?.
Thanks,
Muthu
ex:
try
{
log.Message("Test1");
log.Message("Test2");
log.Message("Test3");
}
catch (e)
{
// Posts an exception message to the test log
Log.Error(e.description);
}
Here if execption occurs on Test2, i get an exception description, but i would like to know the line number as well. Is this possible?.
Thanks,
Muthu