Home All Groups Group Topic Archive Search About
Author
24 Feb 2006 2:32 PM
Matías
When I have an exception I use
try {
} catch(Exception e) {
    print e.Message  (for example)
}

Now, I want to catch the error message and the line number of the error. How
can I do that, I have to put numbers to lines???. Thanks for Your help.

Author
24 Feb 2006 5:56 PM
Tomas Machala
Hi,

You can't trace number of the problematic line since source is compiled. But
Visual Studio should highlight such line if there'll raise any exception
while debugging.

Show quoteHide quote
"Matías" <preguntam***@hotmail.com> pí¹e v diskusním pøíspìvku
news:eQHfx8UOGHA.3272@tk2msftngp13.phx.gbl...
> When I have an exception I use
> try {
> } catch(Exception e) {
>    print e.Message  (for example)
> }
>
> Now, I want to catch the error message and the line number of the error.
> How can I do that, I have to put numbers to lines???. Thanks for Your
> help.
>
>
>
>
Are all your drivers up to date? click for free checkup

Author
24 Feb 2006 6:36 PM
Fao, Sean
wrote:
> When I have an exception I use
> try {
> } catch(Exception e) {
>     print e.Message  (for example)
> }
>
> Now, I want to catch the error message and the line number of the error. How
> can I do that, I have to put numbers to lines???. Thanks for Your help.


That's the job of a debugger.  This would be useless in the released
product.

Hope that helps,


Bookmark and Share

Post Thread options