hi,

in my current project there is a lot of code like this

try
{
......
}
catch
{
.........
}

is there some way to see the exception type and message while debugging
this code(i dont have rights to change it on the TFS)?

thanks

Re: see an excepion in debug by Fabien

Fabien
Thu Sep 28 13:43:21 CDT 2006

Hi,

Put a break point in your block catch and check the exception variable
"e" for example:

catch (exception e),

BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/




Kevin a =E9crit :

> hi,
>
> in my current project there is a lot of code like this
>
> try
> {
> ......
> }
> catch
> {
> .........
> }
>
> is there some way to see the exception type and message while debugging
> this code(i dont have rights to change it on the TFS)?
>=20
> thanks


Re: see an excepion in debug by Kevin

Kevin
Fri Sep 29 03:20:43 CDT 2006

Fabien, tnx for the answer, but i cant modify the code and it`s just
catch without ()

Fabien wrote:
> Hi,
>
> Put a break point in your block catch and check the exception variable
> "e" for example:
>
> catch (exception e),
>
> BR
>
>
> Fabien Decret
> Windows Embedded Consultant
>
> ADENEO (ADESET)
> http://www.adeneo.adetelgroup.com/
>
>
>
>
> Kevin a écrit :
>
>> hi,
>>
>> in my current project there is a lot of code like this
>>
>> try
>> {
>> ......
>> }
>> catch
>> {
>> .........
>> }
>>
>> is there some way to see the exception type and message while debugging
>> this code(i dont have rights to change it on the TFS)?
>>
>> thanks
>

Re: see an excepion in debug by Neil

Neil
Fri Sep 29 17:43:59 CDT 2006

You can set a breakpoint in the exception handler and check the debugger's
watch value, $exception. You can also type this into the immediate window to
display a summary.

--
-------------------------
Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC


"Kevin" <sure@why.not> wrote in message
news:eHUupA64GHA.3452@TK2MSFTNGP05.phx.gbl...
> Fabien, tnx for the answer, but i cant modify the code and it`s just catch
> without ()
>
> Fabien wrote:
>> Hi,
>>
>> Put a break point in your block catch and check the exception variable
>> "e" for example:
>>
>> catch (exception e),
>>
>> BR
>>
>>
>> Fabien Decret
>> Windows Embedded Consultant
>>
>> ADENEO (ADESET)
>> http://www.adeneo.adetelgroup.com/
>>
>>
>>
>>
>> Kevin a écrit :
>>
>>> hi,
>>>
>>> in my current project there is a lot of code like this
>>>
>>> try
>>> {
>>> ......
>>> }
>>> catch
>>> {
>>> .........
>>> }
>>>
>>> is there some way to see the exception type and message while debugging
>>> this code(i dont have rights to change it on the TFS)?
>>>
>>> thanks
>>



Re: see an excepion in debug by Kevin

Kevin
Fri Oct 06 11:19:11 CDT 2006

Neil,
i get this in watch and immediate windows:
The name '$exception' does not exist in the current context
this is from MSDN2:
(Visual Basic and Visual C# only) If an uncaught exception occurs with
the Exception Assistant turned off, a pseudovariable $exception is added
to the Locals window. You can expand this pseudovariable to see
information on the exception.

Do (and how) i need to turn it off?