[MonoDevelop] Exception display in the call stack

Peter hultqvist phq at silentorbit.com
Tue May 1 09:29:34 UTC 2012


I realized most of the mentioned attributes did work in Visual Studio so I went to send a feature request and found out these already existed.

https://bugzilla.xamarin.com/show_bug.cgi?id=401
https://bugzilla.xamarin.com/show_bug.cgi?id=3565

Then my question is answered.

On 2012-05-01 11:17, Peter hultqvist wrote:
> 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]
>        
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list



More information about the Monodevelop-list mailing list