[Mono-list] Line Number in Error Messages

Alan Tam Tam@SiuLung.com
Thu, 23 Jan 2003 19:27:37 +0800


Thank you all. I got it worked.

Since I am using Debian, I just use ./Env.exe to run it, instead of mono, so
I didn't realise I need to run it with --debug.

Regards,
Alan

----- Original Message -----
From: "Martin Baulig" <martin@gnome.org>
To: "Alan Tam" <Tam@SiuLung.com>
Cc: <mono-list@ximian.com>
Sent: 20030123 16:31
Subject: Re: [Mono-list] Line Number in Error Messages


> "Alan Tam" <Tam@SiuLung.com> writes:
>
> > May I know where is the line number?
> >
> > > Unhandled Exception: System.FormatException: System.String[] error.
> > > in <0x0019d> 00 PM.Web.HttpRequest:ProcessString (string)
> > > in <0x0007d> 00 PM.Web.HttpRequest:.ctor (string,string)
> > > in <0x00070> 00 PM.Web.HttpContext:.ctor ()
> > > in <0x00036> 00 PM.Env:.ctor ()
> > > in <0x00024> 00 PM.Env:Main ()
> >
> > Compilation flags: -g
>
> You also need to use `mono --debug mcs.exe' - that makes the runtime a lot
slower,
> so it isn't enabled by default.
>
> If that doesn't work for you, then it's my fault since I possibly broke
that code, so
> please complain ....
>
> Martin
>
> >
> > By the way, I think the line numbers in all stack frames are also
useful.
> >
> > Regards,
> > Alan
> >
> > ----- Original Message -----
> > From: "A Rafael D Teixeira" <rafaelteixeirabr@hotmail.com>
> > To: <Tam@SiuLung.com>; <mono-list@ximian.com>
> > Sent: 20030122 10:12
> > Subject: Re: [Mono-list] Line Number in Error Messages
> >
> >
> > > First line in the stack trace gives the exact number of line where the
> > > exception ocurred. It doesn't need to be duplicated in the message.
> > >
> > > Regards,
> > >
> > > Rafael Teixeira
> > > Brazilian Polymath
> > > Mono, MonoQLE Hacker
> > >
> > >
> > >
> > >
> > > _________________________________________________________________
> > > Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> > > http://join.msn.com/?page=features/junkmail
> > >
> >
> > _______________________________________________
> > Mono-list maillist  -  Mono-list@ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >
>
> --
> Martin Baulig
> martin@gnome.org
> martin@ximian.com
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>