Bug 11034 - Debug information for release builds
Summary: Debug information for release builds
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 6.2.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Zoltan Varga
Depends on:
Reported: 2013-03-11 06:11 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2013-03-25 07:22 UTC (History)
3 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 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:

Description Rolf Bjarne Kvinge [MSFT] 2013-03-11 06:11:29 UTC
Currently debug (dSYM) information is only created for debug builds (i.e. for line numbers to show up in crash reports the user has to enable "Emit debugging information" in the project's compiler options *and* enable "Enable debugging" in the project's iOS build options).

We should support emitting debug information even when "Enable debugging" is not selected (this is to get line numbers in crash reports for release builds).
Comment 1 Rolf Bjarne Kvinge [MSFT] 2013-03-11 06:12:09 UTC
Zoltan, any idea how much time this would take to implement?
Comment 2 Zoltan Varga 2013-03-11 08:42:45 UTC
If you pass --debug, and don't pass --aot=nodebug to the AOT compiler, it will generate dwarf debug info 
into the AOT images, then runs dsymutil to generate a .dSYM directory. So I'm not sure what needs to be implemented here.
Comment 3 Rolf Bjarne Kvinge [MSFT] 2013-03-11 09:40:37 UTC
Won't --debug generate different (slower/more memory usage) code?
Comment 4 Zoltan Varga 2013-03-11 09:55:54 UTC
mono --debug just causes the runtime to load the .mdb files and the jit to generate line number tables.
These tables take up some space in the AOT image, but the same code is generated.

--aot=soft-debug causes code to be generated which works with sdb. This is the slower/bigger code.
Comment 5 Rolf Bjarne Kvinge [MSFT] 2013-03-13 09:47:51 UTC
Your change seems to be working, thanks!
Comment 6 Kirk Klobe 2013-03-19 14:37:28 UTC
So, how can I get this working from XS 4.0.2 with x.iOS I've been fiddling with project and compiler settings and can't seem to get any line number magic on a testflight build compiled in release mode.

Comment 7 Rolf Bjarne Kvinge [MSFT] 2013-03-25 07:22:34 UTC
@Kirk: this hasn't been released yet. It will be included in the 6.4 release (sorry but we don't have a release date yet).