[Mono-list] Why doesn't Mono include full stack trace information into exception?
Andrei Faber
andrei.faber at gmail.com
Mon Dec 30 04:16:26 UTC 2013
Why doesn't Mono include full stack trace information into exception?
For example, this code:
class Program
{
static void Main(string[] args)
{
try
{
Foo();
}
catch (Exception exc)
{
Console.WriteLine(exc);
}
}
static void Foo()
{
Bar();
}
static void Bar()
{
throw new ApplicationException();
}
}
In MS .NET, it produces this output:
System.ApplicationException: Error in the application.
at ConsoleApplication2.Program.Bar()
at ConsoleApplication2.Program.Foo()
at ConsoleApplication2.Program.Main(String[] args)
While in Mono:
System.ApplicationException: An application exception has occurred.
at ConsoleApplication2.Program.Main (System.String[] args) [0x00000]
in <filename unknown>:0
--
Best wishes,
Andrei Faber
More information about the Mono-list
mailing list