try

{

  // Code that throws an exception

}

catch( Exception exception )

{

  System.Diagnostics.Debug.WriteLine( exception.ToString() );

 

  // The exception details will be outputted to the "Output" window of VS.NET.

  // Have this information available when contacting technical support.

}