Bug 38221 - Breakpoint are not hit in PCL project (Running on iOS simulator)
Summary: Breakpoint are not hit in PCL project (Running on iOS simulator)
Status: RESOLVED DUPLICATE of bug 38240
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: --- blocker
Target Milestone: 4.1.0 (C7)
Assignee: Bugzilla
Depends on:
Reported: 2016-01-30 14:20 UTC by Axel
Modified: 2016-02-01 09:08 UTC (History)
5 users (show)

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

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 Axel 2016-01-30 14:20:01 UTC
# Steps to reproduce
Create a new Blank App (Xamarin.Forms Portable)
In the PCL, App.cs put a breakpoint in the ctor first line (MainPage = new ContentPage....)
Start the app on the iOS simulator
The breakpoint is never hit

# Expected behavior
The breakpoint is hit

# Actual behavior

# Supplemental info (logs, images, videos)

# Test environment (full version information)
Windows : 
Microsoft Visual Studio Enterprise 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01038

Version installée : Enterprise

Outils d'architecture et de modélisation   00322-80000-00000-AA403
Outils d'architecture et de modélisation Microsoft
UML® et Unified Modeling Language™ sont des marques ou des marques déposées de Object Management Group, Inc. aux États-Unis d'Amérique et dans d'autres pays.

Visual Basic 2015   00322-80000-00000-AA403
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA403
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA403
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - FRA   00322-80000-00000-AA403
Windows Phone SDK 8.0 - FRA

ASP.NET and Web Tools 2015 (RC1 Update 1)   14.1.11120.0
ASP.NET and Web Tools 2015 (RC1 Update 1)

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

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

Azure App Service Tools v2.8.1   14.0.11123.0
Azure App Service Tools v2.8.1

Common Azure Tools   1.7
Fournit des services courants utilisables par Microsoft Azure Mobile Services et Microsoft Azure Tools.

DataFactoryProject   1.0
Microsoft Data Factory Package

Gestionnaire de package NuGet   3.3.0
Gestionnaire de package NuGet dans Visual Studio. Pour plus d'informations sur NuGet, consultez la page http://docs.nuget.org/.

GitHub.VisualStudio   1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

GorillaPlayerPackage Extension   1.0
GorillaPlayerPackage Visual Studio Extension Detailed Info

Microsoft Azure Data Factory Node Node   1.0
Azure Data Factory extension for Visual Studio Server Explorer.

Microsoft Azure HDInsight HQL Service   2.0.2900.0
Language service for Hive query

Microsoft Azure HDInsight Tools for Visual Studio   2.0.2900.0
An integrated development environment for HDInsight application development.

Microsoft Azure Tools   2.7
Microsoft Azure Tools pour Microsoft Visual Studio 2015 - v2.7.30818.1601

Microsoft Azure Tools   2.8
Microsoft Azure Tools pour Microsoft Visual Studio 2015 - v2.8.31121.1

Outils Microsoft Azure Mobile Services   1.4
Outils Microsoft Azure Mobile Services

Package Outils Application Insights pour Visual Studio   1.0
Outils Application Insights pour Visual Studio

PreEmptive Analytics Visualizer   1.2
Extension Microsoft Visual Studio permettant de visualiser des résumés agrégés à partir du produit PreEmptive Analytics.

SQL Server Data Tools   14.0.50730.0
Microsoft SQL Server Data Tools

TypeScript pour Microsoft Visual Studio

Visual Studio Tools pour les applications Windows universelles   14.0.24720.00
Visual Studio Tools pour les applications Windows universelles vous permet de créer une expérience d'application universelle unique que vous pouvez retrouver sur tous les appareils exécutant Windows 10 : téléphones, tablettes, PC, etc. Il inclut le Kit de développement logiciel (SDK) Microsoft Windows 10.

Web Essentials 2015   1.0.203
Adds many useful features to Visual Studio for web developers.

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

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

Xamarin.iOS (47eb74b)
Visual Studio extension to enable development for Xamarin.iOS.

=== Xamarin Studio ===

Version 5.10.2 (build 56)
Installation UUID: 8c3f864e-1489-47e4-be36-88d60ed3a31d
	Mono 4.2.2 (explicit/996df3c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402020030

=== Xamarin.Profiler ===

Not Installed

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/axelcharpentier/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.4   (API level 19)
		6.0   (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23.0.1

Java SDK: /usr
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

=== Xamarin Android Player ===

Not Installed

=== Apple Developer Tools ===

Xcode 7.2 (9548)
Build 7C68

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 47eb74b4
Branch: master
Build date: 2016-01-20 17:06:01-0500

=== Xamarin.Mac ===

Version: (Starter Edition)

=== Build Information ===

Release ID: 510020056
Git revision: bb74ff467c62ded42b7b7ac7fdd2edc60f8647b0
Build date: 2016-01-26 16:24:41-05
Xamarin addins: 8b797d7ba24d5abab226c2cf9fda77f666263f1b
Build lane: monodevelop-lion-cycle6-c6sr1

=== Operating System ===

Mac OS X 10.11.2
Darwin Mac-de-Axel-desk.local 15.2.0 Darwin Kernel Version 15.2.0
    Fri Nov 13 19:56:56 PST 2015
    root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64
Comment 1 Axel 2016-01-30 21:28:17 UTC
Note that if I change the iOS simulator version I cant execute my app anymore, output show this message : "The application <myapp> needs to be rebuilt due to an inconsistency between
the connected Mac and the local app. Please rebuild the application and try

And this will still appears even after a Clean and a rebuild...
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2016-01-30 22:26:07 UTC
## Preliminary confirmation

- I can replicate the problem from Comment 0 using Visual Studio 2015 Update 1 (German) on Windows 10 (Swedish).

- I cannot replicate the problem from Comment 0 on Visual Studio 2013 Update 5 (English) on Windows 10 (US).

I will try a couple other tests to determine whether the locale is part of the problem or whether the difference in behavior is purely due to the Visual Studio version.

After I have more completely characterized the behavior of the problem from Comment 0, I will look into the behavior from Comment 1.

- Brendan
Xamarin Customer Support
Comment 3 Olivier Ansquer 2016-02-01 08:31:43 UTC
I have the same problem (WIN10 + VS 2015).
Comment 4 Brendan Zagaeski (Xamarin Team, assistant) 2016-02-01 09:08:09 UTC
I have now characterized the behavior in detail. Somewhat surprisingly, it turns out that the interface language of Visual Studio is indeed crucial to replicating this problem.

One possible temporary workaround is to set the interface language of Visual Studio to English.

For tidiness I have filed a new bug report based on the in-depth characterization, so I will now mark this bug as a duplicate.

### Follow-up on the symptom from Comment 1

I have so far not been able to replicate the "needs to be rebuilt due to an inconsistency" error by switching between different simulators, so it seems that that is a separate issue that depends on some additional details of the environment.

If by chance you are using a project that has configurations with custom names, then you might be hitting Bug 37937.

But if Bug 37937 does not match the symptoms you're seeing, then when you get a chance, please file a new bug report for the "inconsistency" problem, and on that bug please attach your diagnostic MSBuild output [1] for a build attempt where you got the "inconsistency" error message. Thanks in advance!

[1] See "Verbose build output" on

*** This bug has been marked as a duplicate of bug 38240 ***