Bug 52478 - iOS Run Option Environment Variables do not work
Summary: iOS Run Option Environment Variables do not work
Status: RESOLVED DUPLICATE of bug 55900
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: Normal normal
Target Milestone: 4.4.0 (C10)
Assignee: Bugzilla
Depends on:
Reported: 2017-02-13 15:59 UTC by John Miller [MSFT]
Modified: 2017-06-09 21:41 UTC (History)
5 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 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 John Miller [MSFT] 2017-02-13 15:59:43 UTC

   When I add iOS env. variables to the Run Options in Debug, they do not seem to work. 
**Steps to Reproduce:** 

   Add variables for 

   Run in Debug and notice that the Output does not have the GC messages.

**Actual Results:**

  No GC messages in Output.
**Expected Results:**

  GC Messages in Output. 
**Build Date & Platform:**

  Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Xamarin (00fa5cc)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android (501e63c)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS (7beaef4)
Visual Studio extension to enable development for Xamarin.iOS.
**Additional Information:**

   Add the following to the Additional mtouch arguments in the iOS build menu and it will work. 

   --setenv:MONO_LOG_LEVEL=debug --setenv:MONO_LOG_MASK=gc
Comment 1 John Miller [MSFT] 2017-02-13 16:00:47 UTC
Following guide here: https://developer.xamarin.com/guides/ios/advanced_topics/environment/
Comment 2 Emanuel 2017-02-14 18:07:23 UTC
This should be fixed as part of the rework of the properties pages
Comment 3 Emanuel 2017-06-09 21:41:40 UTC

*** This bug has been marked as a duplicate of bug 55900 ***