Bug 16924 - mcs does not add DebuggableAttribute
Summary: mcs does not add DebuggableAttribute
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Blocks: 16898
  Show dependency tree
Reported: 2013-12-20 18:38 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2014-01-06 09:25 UTC (History)
2 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 GitHub or 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 Rolf Bjarne Kvinge [MSFT] 2013-12-20 18:38:09 UTC
It looks like mcs does not add the DebuggableAttribute to any assemblies

From what I can see csc automatically adds a DebuggableAttribute as long as /debug is passed. The exact values in the DebuggableAttribute seems to depend on both /debug and /optimize.

$ touch test.cs
$ mcs /target:library test.cs /debug
$ monodis test.dll

And no DebuggableAttribute is found.
Comment 1 Marek Safar 2014-01-02 11:52:46 UTC
That's correct. Why is it needed?
Comment 2 Rolf Bjarne Kvinge [MSFT] 2014-01-06 04:34:09 UTC
See bug #16898 - customers use this attribute to determine if the assembly was built using a debug or release configuration.
Comment 3 Marek Safar 2014-01-06 09:25:48 UTC
Implemented in master