Answer the question
In order to leave comments, you need to log in
How to display the line number in which the error occurs in try catch?
The code:
try {
...
}
catch (Exception error)
{
addToLog("Error 43: " + error.Message + " : " + error.StackTrace);
}
Answer the question
In order to leave comments, you need to log in
stackoverflow.com/questions/688336/show-line-numbe...
stackoverflow.com/questions/3328990/c-sharp-get-li...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question