title: Trying to get debugging output from Mono NUnit tests
body: <p>I have a rather large C# library, originally written for .NET and Windows, which we are now porting to Mono and Linux.  It is thoroughly unit tested with NUnit.  The porting has been fairly simple, but now I need some real debugging features, like error line numbers and breakpoints.</p>
  
  <p>I'm compiling either using VS2010 on Windows 7 or with xbuild on Debian 6.0.2, it really doesn't matter because the binaries are fully compatible.  Running tests with Mono 2.10.2 built from tarball, and NUnit 2.5.10 from Debian experimental.</p>
  
  <p>When I run my project in Visual Studio, debugging works fine after I attach to the nunit process.  So, does anyone know how I can enable fully-featured Mono debugger support with NUnit tests?</p>
  
  <p>P.S. I've seen <a href="https://stackoverflow.com/questions/5317343/mono-debug-information-with-exceptions-on-debian">this</a>, but I'm compiling with xbuild and running with nunit-console, so I can't manually give arguments to either the compiler or the Mono runtime.</p>
  
  <p>Thanks in advance!</p>
  
  <p>UPDATE: I discovered the pdb2mdb utility, but even when I use this, I still can't get line numbers, which leads me to believe that the code isn't being compiled with --debug.  But since I'm using xbuild on a VS .sln file, instead of invoking the compiler directly, how do I use --debug??</p>