Bug 18824 - For certain projects, setting the linker mode to a value other than "None" leads to incorrect line numbers when debugging
Summary: For certain projects, setting the linker mode to a value other than "None" le...
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 4.13.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: 6.0 (C6)
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2014-04-04 17:20 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2015-07-24 09:46 UTC (History)
4 users (show)

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

Description Brendan Zagaeski (Xamarin Team, assistant) 2014-04-04 17:20:10 UTC
For certain projects, setting the linker mode to a value other than "None" leads to incorrect line numbers when debugging.

Perhaps there are two slightly different fixes needed:
1. Linker ON and "Use Shared Runtime" ON. Maybe the linking build step can be skipped entirely in this case?

2. Linker ON and "Use Shared Runtime" OFF. Maybe this case can be fixed so that the `mdb` files point to the correct line numbers? Alternatively, maybe the behavior of debugging with linking enabled is explicitly unsupported?


## Additional information

### Changes that keep showing the incorrect line numbers
- Disabling "Use Shared Runtime".

### Changes that produce the "expected" line numbers
- Enabling "Fast Deployment".

- Deleting most of the contents of the "Lib" project in the attached test case.

- Replacing most of the code in the "Lib" project with "random" code from the Mono base class libraries.


## Version information

Tested with Xamarin.Android 4.12.02001, Xamarin.Android 4.10.02014, and xamarinvs-master.
Comment 3 Marek Safar 2015-07-09 09:02:15 UTC
Fixed in master
Comment 4 David Karlaš 2015-07-24 00:41:51 UTC
*** Bug 32383 has been marked as a duplicate of this bug. ***