id | title | date | author | layout | guid | permalink | dsq_thread_id | categories | tags | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3812 |
Break when an exception is thrown in Xamarin Studio |
2016-10-26 22:13:37 +0000 |
fabiocozzolino |
post |
/break-exceptions-xamarin-studio/ |
|
|
|
If you are a typical Visual Studio user, you’ll find easy use the menu Debug > Windows > Exception Settings and set your favorite option to break debug when a specific exeption was thrown:
But, in Xamarin Studio, that thing is just a little bit different. You need to set a new breakpoint from the menù Run > New Breakpoint:
Then you must select the “When an exception is thrown” options:
Finally, you can choose the exception that will cause the debugger’s break, eventually by including their subclasses:
That’s all!