CallumDev / monomac

Bindings to create MacOS X applications with Mono.
http://www.mono-project.com/Mono:OSX
Other
0 stars 0 forks source link

Improve exception message when a type cannot be converted during marshaling #3

Open CallumDev opened 8 years ago

CallumDev commented 8 years ago

Issue by aarononeal Saturday Nov 24, 2012 at 01:22 GMT Originally opened as https://github.com/mono/monomac/pull/90


Now when a type cannot be converted a more detailed exception message is generated stating the types converted from and to. This makes it easier to debug applications.


aarononeal included the following code: https://github.com/mono/monomac/pull/90/commits

CallumDev commented 8 years ago

Comment by marek-safar Saturday Nov 24, 2012 at 08:58 GMT


This is what --debug=casts options is for

CallumDev commented 8 years ago

Comment by aarononeal Saturday Nov 24, 2012 at 18:10 GMT


I think handling it directly in the code is less of a hassle and makes for a better out of box debugging experience. I understand though if you're fine with devs having to update their projects with parameter options for debugging, so feel free to close this pull if you decide not to incorporate it.