[2.0] VS Debugger, go to address, and don't pass exception to debugger?
Finally got VS Debugger to work and I am liking it so far but 2 problems.
1.) How do you go to an address? In the disassembly window, I have tried tons of combinations but nothing works. It always gives an invalid expression error.
2.) How do you disable passing an exception to the debugger? It is a nice feature but I am not looking for it right now.
An example of what I mean(psuedo code).
Code:
int b()
{
return 1/0; //The debugger breaks here
}
void a()
{
try
{
b();
}
catch
{
//I want it to break here instead on an exception in "b"
}
}
Didn't know which section to post this in, sorry.
Re: [2.0] VS Debugger, go to address, and don't pass exception to debugger?
Hey,
I am not sure what you are getting at, but I thinking this article might point you in the right direction:
http://msdn.microsoft.com/en-us/libr...bt(vs.71).aspx
As for your second question, the debug can only step to lines of code where there is code. If you have an empty catch statement then the debugger will step over it.
If you are trying to find out what the exception is then you would have to do something like:
Code:
catch(Exception ex)
{
MessageBox.Show(ex);
}
And the debugger will stop on this line.
Hope that helps!!
Gary