Ask a Question related to ASP.NET General, Design and Development.
-
Sune Hansen #1
Error line number
Hi Newsgroup,
A very short question:
If have a try/catch structure. In the catch part I would like to get the
line number where the exception has occured? Can I get this information and
if so how?
Regards,
Sune
Sune Hansen Guest
-
Return Line Number of text in a textfield?
Can the line numbers of the text containing a special character be retrieved? e.g. text in a textfield: #line 1 line 2 line 3 #line 4 line... -
Inserting Line Number
I would like to insert line numbers for all the files in a directory. So if a directory contains files like foo.c, foo.c1, foo.c2, foo.c3, foo.c4,... -
A (probable) error in perltoot ( perl5/5.8.0/pod/perltoot.pod, line number 756 )
Dear Perl Programmers, I tried out the code given in :- http://www.perldoc.com/perl5.8.0/pod/perltoot.html#Aggregation The following line :-... -
Get number of line with error
Hi all. I want ask you it exist some way how to get number of line in script producing error. for example: .... .... 100 ... -
Error message line number in subs
I have an interactive perl cgi programlet, which allows some graphics for interactively typed and executed perl programs: ... -
Serdar Kalaycý #2
Re: Error line number
As far as I know; after compilation, errors won't show line numbers because,
they're not in Source Code form. There may be some difference in CLR that I
don't know.
Serdar KALAYCI
"Sune Hansen" <sunedh@hotmail.com> wrote in message
news:uCh0Fy6PDHA.2256@TK2MSFTNGP11.phx.gbl...and> Hi Newsgroup,
>
> A very short question:
> If have a try/catch structure. In the catch part I would like to get the
> line number where the exception has occured? Can I get this information> if so how?
>
> Regards,
> Sune
>
>
Serdar Kalaycý Guest
-
Sune Hansen #3
Re: Error line number
I was affraid that this would be the case.
However I have found that I can get the line number information from the
StackTrace like this:
Catch e As Exception
Response.Write(e.StackTrace)
End Try
/Sune
"Serdar Kalaycý" <serdarkalayci@unisec.com.tr> wrote in message
news:OKAd$16PDHA.3880@tk2msftngp13.phx.gbl...because,> As far as I know; after compilation, errors won't show line numbersI> they're not in Source Code form. There may be some difference in CLR that> don't know.
>
> Serdar KALAYCI
>
> "Sune Hansen" <sunedh@hotmail.com> wrote in message
> news:uCh0Fy6PDHA.2256@TK2MSFTNGP11.phx.gbl...> and> > Hi Newsgroup,
> >
> > A very short question:
> > If have a try/catch structure. In the catch part I would like to get the
> > line number where the exception has occured? Can I get this information>> > if so how?
> >
> > Regards,
> > Sune
> >
> >
>
Sune Hansen Guest



Reply With Quote

