Bug 20132 - 3.0.54 (and one eariler probably) stops on CLR exception breaks (PCL based) application
Summary: 3.0.54 (and one eariler probably) stops on CLR exception breaks (PCL based) a...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 3.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Joaquin Jares
Depends on:
Reported: 2014-05-29 10:16 UTC by Miha Markic
Modified: 2016-12-20 13:25 UTC (History)
7 users (show)

Is this bug a regression?: ---
Last known good build:

Sample project (2.01 MB, application/rar)
2014-05-29 10:16 UTC, Miha Markic

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Miha Markic 2014-05-29 10:16:10 UTC
Created attachment 6905 [details]
Sample project

Run the attached application, first with "Do not stop on handled CLR exceptions". It will work fine.
Turn on Debug/Exceptions/Common Language Runtime Exceptions [Thrown] and run it again.
It will catch an handled exception:
"System.Security.Cryptography.CryptographicException: Store Root doesn't exists."
This is correct I guess. Now, select Break on this exception modal dialog and turn off Debug/Exceptions/Common Language Runtime Exceptions [Thrown].
Then Continue. 
Application will stop the loop (but not crash, odd) and Output window will contain this message:
[0:] Error: SendFailure (Error writing headers)
Which isn't correct behavior. It should continue.
Xamarin IDE handles it correctly.
Comment 1 Ram Chandra 2014-06-04 13:06:15 UTC
I have checked this issue and I am able to reproduce this issue.

I am  observing same behavior as when I unchecked Debug/Exceptions/Common Language Runtime Exceptions [Thrown] from the exception window, the output window display following message:

Error: SendFailure (Error writing headers)
Error: SendFailure (Error writing headers)
[0:] Error: SendFailure (Error writing headers)

Screencast: http://screencast.com/t/Ik6vOhPtr7n

Supplement Info:
Output window logs: https://gist.github.com/AkhileshKumar01/a9d79ccb53c7f509f87b

Environment Info:

Microsoft Visual Studio Professional 2013
Version 12.0.30501.00 Update 2
Microsoft .NET Framework
Version 4.5.50938

Xamarin (d3cf238e3845e930e312b6ec9b4c6c5437c33067)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android

Xamarin.Android (b5dc5ce91305e19de51d71a1122c109719c4bc34)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS (d3cf238e3845e930e312b6ec9b4c6c5437c33067)
Visual Studio extension to enable development for Xamarin.iOS
Comment 2 Joaquin Jares 2016-12-20 13:25:33 UTC
This has been fixed in 4.1 and is no longer an issue. Closing for verification.