Rhino.Context.SetGeneratingDebug C# (CSharp) Method

SetGeneratingDebug() public method

Specify whether or not debug information should be generated.
Specify whether or not debug information should be generated.

Setting the generation of debug information on will set the optimization level to zero.

public SetGeneratingDebug ( bool generatingDebug ) : void
generatingDebug bool
return void
		public void SetGeneratingDebug(bool generatingDebug)
		{
			if (@sealed)
			{
				OnSealedMutation();
			}
			generatingDebugChanged = true;
			if (generatingDebug && GetOptimizationLevel() > 0)
			{
				SetOptimizationLevel(0);
			}
			this.generatingDebug = generatingDebug;
		}

Usage Example

Example #1
0
		protected internal override void OnContextCreated(Context cx)
		{
			cx.SetLanguageVersion(languageVersion);
			cx.SetOptimizationLevel(optimizationLevel);
			if (errorReporter != null)
			{
				cx.SetErrorReporter(errorReporter);
			}
			cx.SetGeneratingDebug(generatingDebug);
			base.OnContextCreated(cx);
		}
All Usage Examples Of Rhino.Context::SetGeneratingDebug
Context