Bug 13641 - Error CS1902: Invalid debug option `all'. Valid options are `full' or `pdbonly' (CS1902)
Summary: Error CS1902: Invalid debug option `all'. Valid options are `full' or `pdbonl...
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 6.2.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2013-07-31 04:01 UTC by Amanda
Modified: 2013-08-07 14:09 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 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 Amanda 2013-07-31 04:01:24 UTC
After upgrading to :

Xamarin Studio
Version 4.0.10 (build 7)
Installation UUID: d615486e-971e-4e15-8b00-e936d270c4ae
	Mono 3.2.0 ((no/7c7fcc7)
	GTK 2.24.20
	GTK# (
	Package version: 302000000

Apple Developer Tools
Xcode 4.6.2 (2067.2)
Build 4H1003

Version: (Business Edition)
Hash: c9f7659
Build date: 2013-18-07 21:36:03-0400

when I build for iOS Device I get this error:

Error CS1902: Invalid debug option `all'. Valid options are `full' or `pdbonly' (CS1902) 

When I build to the Simulator, I get a successfull build


Comment 1 Rolf Bjarne Kvinge [MSFT] 2013-07-31 19:19:46 UTC
Can you attach your project file (only the .csproj) to this bug?
Comment 2 Amanda 2013-08-01 04:47:55 UTC
Hi Rolf

Fixed my issue!! I edited my project file and replaced :  <DebugType>all</DebugType>, with this  <DebugType>full</DebugType>

Thanks for your quick response


Comment 3 Amanda 2013-08-01 04:48:17 UTC
Comment 4 Amanda 2013-08-06 03:56:54 UTC

After upgrading to Xamarin Studio
Version 4.0.10 (build 7) this morning this bug reappeared.

This time I had to change the following in my project file:




You can change the status of this to Fixed


Comment 5 Mikayla Hutchinson [MSFT] 2013-08-06 11:06:32 UTC
FWIW there's UI for that option: Project Options -> Build -> Compiler -> Debug Information
Comment 6 Amanda 2013-08-07 01:32:02 UTC
Hi , I am confused, there are only three options in the drop down for the UI, 

Symbols Only

Not sure where "All" came into it after the upgrade?


Comment 7 Mikayla Hutchinson [MSFT] 2013-08-07 14:09:01 UTC
Xamarin Studio only recently added support for passing the DebugType property to the compiler, so the invalid "all" value may have been in your project file a for a long time.

The <additionalargs>-debug:all</additionalargs> is stranger, I know of no way that XS would set that, so perhaps it was set manually some time ago? My guess would be that the C# compiler in the latest version of Mono (not XS) now performs stricter checking of arguments, and this value could also have been there for a long time.