For instance, write a function such as:
void foo()
{
try
{
throw new Exception(@"whatever");
}
catch
{
int n=1; //put a breakpoint here
}
}
When the debugger is on the line in the catch block, typing $exception
will show the exception information.
Are there any more? What are these things? There seems to be no official documentation on them. I've used $exception
for quite a while, but was hoping there were others that, for example, would show the return value of a method.