Bug 40473 - Cannot set specific exceptions to break on within exception settings
Summary: Cannot set specific exceptions to break on within exception settings
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 4.0.0 (C6)
Hardware: PC Mac OS
: Normal normal
Target Milestone: Future Cycle
Assignee: vsx
URL:
Depends on:
Blocks:
 
Reported: 2016-04-17 21:47 UTC by Pierce Boggan [MSFT]
Modified: 2017-07-14 19:10 UTC (History)
7 users (show)

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


Attachments
Screenshot showing bug (34.67 KB, image/jpeg)
2016-04-17 21:47 UTC, Pierce Boggan [MSFT]
Details


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:
Status:
RESOLVED FIXED

Description Pierce Boggan [MSFT] 2016-04-17 21:47:41 UTC
Created attachment 15746 [details]
Screenshot showing bug

for both Android/iOS, these app types don’t respect the settings specified in the Exception Settings.  For example, the below screenshot shows that I have changed the CLR exceptions so that it should only break for the Microsoft.Jscript.JScriptException.  However, it actually continues to break for all CLR exceptions – notice in the screenshot that the exception dialog opened for the MobileServiceInvalidOperationException even though it’s not selected in the exception settings.

Here are the repro steps:

a.       Use the MyDriving app (https://github.com/Azure-Samples/MyDriving/tree/master/src/MobileApps/MyDriving) – run either Android or iOS.

b.       In the Exception Settings window in VS (ctrl+alt+e), choose to only break on the JScriptException.

c.       Run the app and on the current trip screen; start a recording, choose the simulator, and then stop the recording.  At this point,  you will see the exception dialog open so that it breaks on the MobileServiceInvalidOperationException.  Instead, we shouldn’t break on this exception at all.  If you continue to run the app, you’ll notice that it breaks on all CLR exceptions even though only one specific one was selected.

Xamarin VS Xamarin 4.0.196