Bug 28781 - Using XamarinVS 3.11.271, PCL MDB files are not generated and PCL breakpoints don't work.
Summary: Using XamarinVS 3.11.271, PCL MDB files are not generated and PCL breakpoints...
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 5.1
Hardware: PC Windows
: High blocker
Target Milestone: 5.1
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2015-04-04 22:44 UTC by philip
Modified: 2015-04-09 07:07 UTC (History)
10 users (show)

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


Attachments
Test case (21.39 KB, application/zip)
2015-04-07 20:44 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details
Diagnostic build output (167.50 KB, application/zip)
2015-04-07 22:49 UTC, Brendan Zagaeski (Xamarin Team, assistant)
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 or GitHub 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:
VERIFIED FIXED

Description philip 2015-04-04 22:44:52 UTC
This was working in 3.9 but installing XamarinVS 3.11.271 broke MDB generation, so this release in unusable.  My Android project still generates MDB files but my PCL projects don't.  This happens in VS2013 Update 4 and VS 2015 CTP 6.
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2015-04-07 20:44:16 UTC
Created attachment 10666 [details]
Test case

Confirming, and filling out some additional information to ensure the best bug response time (per [1]).

> [1] https://kb.xamarin.com/customer/portal/articles/1910343-when-and-how-should-i-file-a-bug-report-




## Regression status: REGRESSION between Xamarin.Android 4.20 and Xamarin.Android 5.1.0.99

(Only affects Windows.)




## Steps to reproduce

1. Open the attached test case in Visual Studio or Xamarin Studio.

2. Ensure a breakpoint is set on at least one of the lines in `Class1.Foo()` in "PortableClassLibrary1\Class1.cs".

3. Build and run the app in the Debug configuration.

4. Tap the "Hello World, Click Me!" button.




## Actual results

a. The IDE debugger neither pauses the app nor breaks on the breakpoint(s).

and

b. The `AndroidApp1\bin\Debug` folder does _not_ contain a `PortableClassLibrary1.dll.mdb` file.




## Expected results

a. The IDE debugger pauses the app and breaks on the breakpoint(s) set in step (2).

and

b. The `AndroidApp1\bin\Debug` folder contains a `PortableClassLibrary1.dll.mdb` file.




## Version information

### Windows 8.1 64-bit, in VMWare Fusion 6.0.5 (2209127)
Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.51641

Xamarin   3.11.271.0 (e36ba35)
Xamarin.Android   5.1.0.99 (e81edcfee3152b5892337b8741d8da28f9ee74b1)
Xamarin.iOS   8.10.0.0 (3abf86b113ef9dd7c6aaf53c4c47bdb39ae526b9)
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2015-04-07 22:45:49 UTC
Updating statuses, target milestone, and product per comment 1.
Comment 3 Brendan Zagaeski (Xamarin Team, assistant) 2015-04-07 22:49:02 UTC
Created attachment 10667 [details]
Diagnostic build output

> msbuild /t:SignAndroidPackage /v:Diagnostic AndroidApp1\AndroidApp1.csproj


With two different XA versions:

- Xamarin.Android 5.1
- Xamarin.Android 4.20
Comment 4 dean.ellis 2015-04-08 06:49:13 UTC
Turns out the _CollectPdbFiles task was not using the full path to resolve the .pdb files. As a result they were never copied over and then never converted to .mdb files. 

I'm looking at fixing the paths now
Comment 5 dean.ellis 2015-04-08 11:03:48 UTC
Fixed in monodroid/master/c88d975a
and       monodroid/monodroid-5.1-series/0fd868ab
Comment 6 Ram Chandra 2015-04-09 07:07:54 UTC
I am able to reproduce this issue with XVS: 3.11.271

To verify this issue, I have checked this issue with following builds:

Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.51641
Installed Version: Professional
Xamarin   3.11.390.0 (371077f)
Xamarin.Android   5.1.0.111 (0fd868ab811ba806da88fce43a06ce272460765c)
Xamarin.iOS   8.10.0.0 (3abf86b113ef9dd7c6aaf53c4c47bdb39ae526b9)

I observed that the debugger pauses the app and breaks on the breakpoint set in the library project's "Class1.cs" file.

I also observed that the "PortableClassLibrary1.dll.mdb" class is also generated under "AndroidApp1\bin\Debug`  directory".

Screencast: http://www.screencast.com/t/IvPzClZEXNxC

This issue has been fixed. Hence I am closing this issue.