Bug 16396 - Xamarin.Android integration with VS2012 - break on exception
Summary: Xamarin.Android integration with VS2012 - break on exception
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 3.9
Hardware: PC Windows
: Low normal
Target Milestone: 4.3.1 (C9SR1)
Assignee: Joaquin Jares
URL:
Depends on:
Blocks:
 
Reported: 2013-11-21 19:30 UTC by Jon Goldberger [MSFT]
Modified: 2016-12-20 14:02 UTC (History)
9 users (show)

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


Attachments
Screen shot of exception dialog (88.15 KB, image/png)
2013-11-21 19:31 UTC, Jon Goldberger [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

Comment 1 Jon Goldberger [MSFT] 2013-11-21 19:31:22 UTC
Is there a way to make work this :
(screen shot attached to bug report)

The checkbox "Break when this exception type is thrown is not checked", but the debugger breaks on the exception.
Next time this exception occurs, the debugger still breaks there.

On a standard PC, non Xamarin project, it works like this.

1) First time the debugger breaks on an exception, this dialog is shown and the checkbox is checked.

2) If the user unchecks the checkbox, then the debugger never stops again in this exception kind.
Is it possible to have the same behavior with a Xamarin.Android project?
Comment 2 Jon Goldberger [MSFT] 2013-11-21 19:31:55 UTC
Created attachment 5506 [details]
Screen shot of exception dialog
Comment 3 Jon Goldberger [MSFT] 2013-11-22 12:21:33 UTC
More details:

You will find below my versions. Please tell me if this is what you expect.
But what I noticed is that it not related to any version (VS version, xamarin version, etc…)

The exception I catched was “handled”, but I know it won’t work with unhandled either.
It never works, in fact. \

Version info:

Microsoft Visual Studio Ultimate 2012
Version 11.0.60610.01 Update 3
Microsoft .NET Framework
Version 4.5.50709

Installed Version: Ultimate

Architecture and Modeling Tools 04940-004-0038003-02042
Microsoft Architecture and Modeling Tools

UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

LightSwitch for Visual Studio 2012 04940-004-0038003-02042
Microsoft LightSwitch for Visual Studio 2012

Office Developer Tools 04940-004-0038003-02042
Microsoft Office Developer Tools

Team Explorer for Visual Studio 2012 04940-004-0038003-02042
Microsoft Team Explorer for Visual Studio 2012

Visual Basic 2012 04940-004-0038003-02042
Microsoft Visual Basic 2012

Visual C# 2012 04940-004-0038003-02042
Microsoft Visual C# 2012

Visual C++ 2012 04940-004-0038003-02042
Microsoft Visual C++ 2012

Visual F# 2012 04940-004-0038003-02042
Microsoft Visual F# 2012

Visual Studio 2012 Code Analysis Spell Checker 04940-004-0038003-02042
Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Visual Studio 2012 SharePoint Developer Tools 04940-004-0038003-02042
Microsoft Visual Studio 2012 SharePoint Developer Tools

NuGet Package Manager 2.2.40116.9051
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer 1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools 11.1.20627.00
Microsoft SQL Server Data Tools

Text Macros for Visual Studio 2012 1.1
Provides support for text macros in Visual Studio 2012 (à la Notepad++)

VSCommands11 12.0
VSCommands 11

Web Developer Tools 1.2.40308.0
Microsoft Web Developer Tools contains the following components:
Page Inspector: Tool that offers an efficient way to decompose Web Applications and diagnose front-end issues.
Web Publishing: Extensions required for Web Publishing for both hosted servers as well as on premises.
Web Form Templates: Includes the default templates for Web Form Applications.
Editor Extensions: Includes HTML, CSS, and JS editor extensions that greatly enhance the development experience.

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

Xamarin.iOS 1.1.200 (7d63692c)
Visual Studio extension to enable development for Xamarin.iOS
Comment 5 Jon Goldberger [MSFT] 2014-01-09 14:25:20 UTC
From case 56980:
We're having an issue with the Xamarin iOS extension for Visual Studio 
(2013).
I'm debugging against a simulator, and the problem is that even though 
I've disabled breaking on OperationCanceledException, Visual Studio 
keeps breaking on it.
Our code has a lot of these exceptions beeing thrown due to our use of 
async/await and cancellationtokens.
As a result we have to click "continue" for these popups _a lot_, which 
in practice makes it very very annoying/near impossible to actually do 
debugging.
I'm currently using the latest alpha versions of all the Xamarin 
software (seems to be better than the current stable versions).


Microsoft Visual Studio Professional 2013
Version 12.0.21126.00 Update 1 RC
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

LightSwitch for Visual Studio 2013 06177-004-0444002-02996
Microsoft LightSwitch for Visual Studio 2013

Microsoft Office Developer Tools for Visual Studio 2013 ENU 
06177-004-0444002-02996
Microsoft Office Developer Tools for Visual Studio 2013 ENU

Team Explorer for Visual Studio 2013 06177-004-0444002-02996
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013 06177-004-0444002-02996
Microsoft Visual Basic 2013

Visual C# 2013 06177-004-0444002-02996
Microsoft Visual C# 2013

Visual C++ 2013 06177-004-0444002-02996
Microsoft Visual C++ 2013

Visual F# 2013 06177-004-0444002-02996
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker 06177-004-0444002-02996
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell^(TM) spelling correction system © 
1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition 
Copyright © 1992 Houghton Mifflin Company. Electronic version licensed 
from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU 06177-004-0444002-02996
Windows Phone SDK 8.0 - ENU

Advanced Installer Extension 10.8
Advanced Installer Extension. For more information visit the Advanced 
Installer website at www.advancedinstaller.com. Copyright © Caphyon LTD. 
All rights reserved.

ASP.NET and Web Tools 2013.1.41009
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to 
hosting providers, on-premises servers, or Windows Azure

ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit 
http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013 5.0.11001.0
For additional information, visit http://www.asp.net/

AzureXplorer for Microsoft Visual Studio 2010 1.0
AzureXplorer for Microsoft Visual Studio 2010. (c) ClumsyLeaf Software 
2009-2010

Common Azure Tools 1.0
Provides common services for use by Azure Mobile Services and Windows 
Azure Tools.

ConEmu Launcher 1.0.1.0
A command to launch ConEmu in the currently selected Solution Explorer 
item context. Added to the Tools and Solution Explorer menu when a 
solution or project is open.

Console Launcher 1.3.1.0
A command to launch Console in the currently selected Solution Explorer 
item context. Added to the Tools and Solution Explorer menu when a 
solution or project is open.

JetBrains ReSharper 8.1 C# Edition build 8.1.23.546 on 2013-12-12T02:30:52
JetBrains ReSharper 8.1 package for Microsoft Visual Studio. For more 
information about ReSharper, visit http://www.jetbrains.com/resharper/. 
Copyright © 2003--2014 JetBrains, Inc.

Microsoft Advertising SDK for Windows Phone
Microsoft Advertising SDK for Windows Phone
Build

NuGet Package Manager 2.7.41101.371
NuGet Package Manager in Visual Studio. For more information about 
NuGet, visit http://docs.nuget.org/.

OzCode 1.0
Your road to Magical Debugging. http://www.oz-code.com

PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from 
the PreEmptive Analytics product.

ReAttach 1.1
Gives you an easy way to ReAttach to prior debugging targets. For more 
information, see 
http://visualstudiogallery.msdn.microsoft.com/8cccc206-b9de-42ef-8f5a-160ad0f017ae.

SQL Server Data Tools 12.0.30919.1
Microsoft SQL Server Data Tools

TortoiseGitToolbar 1.0
Lightweight toolbar for launching commonly used TortoiseGit 
functionality from within Visual Studio.

VisualSVN 4.0.2
Integration with Subversion version control. For more information about 
VisualSVN, see the VisualSVN website at http://www.visualsvn.com
Copyright © 2005-2013 VisualSVN Ltd. All rights reserved.

VSColorOutput 1.4.5
Color output for build and debug windows - 
http://blueonionsoftware.com/vscoloroutput.aspx

Windows Azure Mobile Services Tools 1.0
Windows Azure Mobile Services Tools

Windows Azure Remote Debugging 1.0
Windows Azure Remote Debugging Community Technology Preview

Windows Azure Tools 2.1
Windows Azure Tools for Microsoft Visual Studio 2012 - v2.1.10716.1601

Windows Azure Tools 2.2
Windows Azure Tools for Microsoft Visual Studio 2013 - v2.2.11003.1601

Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components 
for Workflow Manager.

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

Xamarin.iOS 1.10.30 (4379d2c4)
Visual Studio extension to enable development for Xamarin.iOS
Comment 6 Pavel Safronov 2015-07-07 14:55:23 UTC
I'm encountering this issue with iOS projects in Visual Studio 2013.

Visual Studio info/versions:

Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

LightSwitch for Visual Studio 2013   06177-004-0444002-02872
Microsoft LightSwitch for Visual Studio 2013

Team Explorer for Visual Studio 2013   06177-004-0444002-02872
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06177-004-0444002-02872
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0444002-02872
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0444002-02872
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0444002-02872
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0444002-02872
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06177-004-0444002-02872
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools   12.4.51016.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Websites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.21010.0
For additional information, visit http://www.asp.net/

AWS Toolkit for Visual Studio 2013   1.9.4.0
AWS Toolkit for Visual Studio 2013.
Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.

This software includes third party software subject to the following copyrights:
- Logging from log4net, Apache License 
  [http://logging.apache.org/log4net/license.html]
- Putty for PPK to PEM conversion, MIT license 
  [http://www.chiark.greenend.org.uk/~sgtatham/putty/licence.html]
- NGit for AWS Elastic Beanstalk incremental push
  [https://github.com/mono/ngit/blob/master/NGit.license.txt]
- NSch dependency for NGit
  [https://github.com/mono/ngit/blob/master/NSch.license.txt]
- Sharpen dependency for NGit
  [https://github.com/mono/ngit/blob/master/Sharpen/AssemblyInfo.cs]
- ICSharpCode.SharpZipLib dependency for NGit
  [http://www.icsharpcode.net/opensource/sharpziplib/]
- Mono.Posix.dll and Mono.Security.dll dependencies for NGit
  [http://mono-project.com/FAQ:_Licensing#Licensing]
- MPFProj for Visual Studio Project Framework
  [http://mpfproj10.codeplex.com/license]
- JSON Checker for JSON validation
  [http://www.raboof.com/projects/jsonchecker/]

Common Azure Tools   1.3
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Devart Template Editor   1.0.9.0
Editor for T4 and Devart template files with syntax coloring and IntelliSense.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

Microsoft Azure Mobile Services Tools   1.3
Microsoft Azure Mobile Services Tools

Multiline Search and Replace   1.6
Adds multiline search and replace functionality to Visual Studio.

NuGet Package Manager   2.8.50926.663
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2013 ENU   12.0.30626
Microsoft Office Developer Tools for Visual Studio 2013 ENU

PowerShell Tools   1.3
Provides file classification services using PowerShell

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   12.0.41012.0
Microsoft SQL Server Data Tools

Windows Installer XML Toolset   3.9.1208.0
Windows Installer XML Toolset version 3.9.1208.0
Copyright (c) Outercurve Foundation. All rights reserved.

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

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

Xamarin.Android   5.1.4.16 (5f55a9ef61c11b6ce0890bc91e4c71b1b92be214)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.Forms Intellisense   1.0
Provides intellisense for Xamarin.Forms in the XML editor.

Xamarin.iOS   8.10.2.0 (67b390d0d1bd741582cf7b7fd3ffea08583a3f83)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified

Xamarin.TestCloud.Integration   1.0
Early preview of Xamarin Test Cloud integration
Comment 8 Joaquin Jares 2016-12-20 14:02:20 UTC
Debugger breakpoint conditions were fixed some time ago. Marking this as solved for QA verification.
Comment 9 Joaquin Jares 2016-12-20 14:02:58 UTC
Sorry, Exceptions also :)