Bug 22270 - Regression in XamarinVS 3.5: breakpoints in class libraries are not hit
Summary: Regression in XamarinVS 3.5: breakpoints in class libraries are not hit
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.5
Hardware: PC Windows
: Highest blocker
Target Milestone: 3.5
Assignee: Joaquin Jares
Depends on:
Reported: 2014-08-21 15:33 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2014-08-26 04:34 UTC (History)
5 users (show)

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

Test case (14.24 KB, application/zip)
2014-08-21 15:33 UTC, Brendan Zagaeski (Xamarin Team, assistant)

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 Brendan Zagaeski (Xamarin Team, assistant) 2014-08-21 15:33:08 UTC
Created attachment 7759 [details]
Test case

Regression in XamarinVS 3.5: breakpoints in class libraries are not hit

## Steps to reproduce

1. Download the attached test case.

2. Build and run the project (tested on "iPhone Retina (4-inch) iOS 7.1" simulator).

## Result on XamarinVS 3.5.39 + Xamarin.iOS

Visual Studio does not break on the breakpoint in the `ClassLibrary1.Class1.Class1()` constructor.

## Result on XamarinVS 3.3.47 + Xamarin.iOS

Visual Studio _does_ break on the breakpoint in the `ClassLibrary1.Class1.Class1()` constructor.

## Additional information

If you throw an exception from the `ClassLibrary1.Class1.Class1()` constructor, you can get VS to break on the call to `new ClassLibrary1.Class1();`.

If you then attempt to navigate down in the call stack into ClassLibrary1, Visual Studio displays the "Source Not Available" message:

"Frame not in module

The current stack frame was not found in a loaded module. Source cannot be shown for this location.

You can view disassembly in the Disassembly window. To always view disassembly for missing source files, change the setting in the Options dialog."
Comment 2 Mohit Kheterpal 2014-08-26 04:34:02 UTC
I have checked this issue with the attached sample and now with XVS 3.5.51 + X.iOS, Visual Studio break on the breakpoint in the `ClassLibrary1.Class1.Class1()` constructor as shown in screencast : http://screencast.com/t/rWIZjBPL8Xu

Hence closing this issue.