[MonoDevelop] Exception display in the call stack
Peter hultqvist
phq at silentorbit.com
Tue May 1 09:17:21 UTC 2012
I'm wrapping a function that return -1 on failure.
int GetObjectThrow(string name)
{
int id = Foo.GetObject(name);
if(id == -1)
throw new BarException(name + "does not exist");
}
At the moment this code is in a loaded project/not a compiled library.
Is there any Attribute or similar I can use to tell MonoDevelop to
display the exception one step higher in the call stack to start with,
similar to if I click on the next level manually?
The result would be that the debugger would stop at this line:
GetObjectThrow("does not exist") <--(Exception dialog here)
I've tried the following attributes but none of them appears to make any
difference.
[DebuggerStepThrough]
[DebuggerNonUserCode]
[DebuggerHidden]
[DebuggerStepperBoundary]
More information about the Monodevelop-list
mailing list