title: cannot get stacktrace, source line # information from Mono .dll
body: <p>I am running some <code>.NET</code> <code>.dll</code>s  on <code>Windows Server 2012</code>. The <code>.NET</code> assemblies were compiled from <code>C#</code> code on <code>OS X</code> with <code>Xamarin 4.0</code>. (yeah I know weird setup- but I am a game developer)
  In general they run perfectly, but when it comes to inspecting <code>Exception</code> information, it's not so good. I am trying to pull info out of an <code>Exception</code> object, but it's all empty. I also tried copying the <code>.mdb</code> files along with the <code>.dll</code>s, and made sure I was building in <code>Debug</code>, and with debug symbols.
  For example this code</p>
  
  <pre class="lang-cs prettyprint-override"><code>log.Error (ex.ToString ());
  var st = new StackTrace(ex, true);
  var frame = st.GetFrame(0);
  var line = frame.GetFileLineNumber();
  log.ErrorFormat ("st: {0}, frame: {1}, line: {2}", st.ToString (), frame.ToString (), line);
  </code></pre>
  
  <p>Generates output like this, just the method name, basically</p>
  
  <pre><code>System.NullReferenceException: Object reference not set to an instance of an object.
  at Mindlube.CD3.RandomMatchMaker.ProcessMatchQueue() [ThreadFiber-1] ERROR Mindlube.CD3.App [(null)] - st:    
  at Mindlube.CD3.RandomMatchMaker.ProcessMatchQueue(), frame: ProcessMatchQueue 
  at offset 927 in file:line:column &lt;filename unknown&gt;:0:0, line: 0
  </code></pre>
  
  <p>Any suggestions for getting more detailed <code>Exception</code> information? Using <code>Visual Studio</code> on Windows is not currently an option because I don't have time to re-tool my entire dev environment. So don't say 'use VStudio' :)</p>