[Mono-list] Tracing thrown exceptions on application start

Paolo Molaro lupus@ximian.com
Mon, 21 Feb 2005 16:45:06 +0100

On 02/21/05 Aleksandar Dezelin wrote:
> I have a small test application. I run it with the following command:
> mono --debug --trace=T:System.Exception Test.exe
> This is what I get displayed in console window:
> [skynet@dezelin32 lib]$ mono --debug --trace=T:System.Exception
> Server.exe --breakonex
> ENTER: System.Exception:.ctor
> (string)(this:0x96b7f88[System.OutOfMemoryException Server.exe],
> [STRING:0x96b8fc0:Out of memory], )
> LEAVE: System.Exception:.ctor (string)
You can ignore the first few traces: as you can see we just create some
exception objects, these are not thrown.

> ENTER: System.Exception:.ctor
> (string)(this:0x9685e00[System.Xml.XmlException Server.exe],
> [STRING:0x96c1e60:invalid encoding specification.], )

Your real issue is this, most likely, or the next:

> ENTER: System.Exception:.ctor
> (string)(this:0x9855ea8[System.IndexOutOfRangeException Server.exe],
> [STRING:0x985aa00:Array index is out of range.], )

An out of range exception.

> How can I see where are those exceptions thrown? 
> Project is compiled with debugging info on.

See the stack trace of the exception that is thrown.
You can avoid providing an argument to --trace and have the complete
dump of where the exception was thrown.


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better