stack Trace....

  • Thread starter Thread starter Harry Smith
  • Start date Start date
H

Harry Smith

Can anyone show me the documentation on how to read the Stack Trace? When I
get the error it is not possible to identify which line exactly thrown the
error.
Thanks,
Harry
 
Hello Harry,

try
{
SomeMethodThatThrowsAnException();
}
catch (Exception e)
{
string foo = e.StackTrace; // contains the info your after...
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top