i put my code between try, catch like this
try
{
///
}
catch(Exception ex)
{
//here is where i set the break point
}
but when it enters the catch i can’t read ex in quick watch windows as it says that it does not exist in the current context.
Is this from the IDE itself?? because it happens with all the project i work on.
You will need to actually do something with the exception. I believe this has to do with some optimizations that the compiler\debugger does. Basically the compiler\debugger will see that the exception is no longer referenced\used and it won’t be available. Do something like the following