title: How to get line number(s) in the StackTrace of an exception thrown in .NET to show up
body: <p>MSDN says this about the <code>StackTrace</code> property of the <code>Exception</code> class:</p>
  
  <blockquote>
    <p>The StackTrace property holds a stack
    trace, which you can use to determine
    where in the code the error occurred.
    StackTrace lists all the called
    methods that preceded the exception
    and the line numbers in the source
    where the calls were made.</p>
  </blockquote>
  
  <p>So I know that this information is available. How do I get the line numbers to actually show up in the stack trace? My code is throwing an exception in a very difficult and complex piece of code that goes through TONS of objects, so I don't want to step through a bazillion times to see where the exception is happening. The stack trace of the exception only shows method signatures and no line numbers.</p>