This documentation is archived and is not being maintained.

CompilationSection.Debug Property

Gets or sets a value specifying whether to compile release binaries or debug binaries.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

public bool Debug { get; set; }
/** @property */
public boolean get_Debug ()

/** @property */
public void set_Debug (boolean value)

public function get Debug () : boolean

public function set Debug (value : boolean)

Not applicable.

Property Value

true if debug binaries will be used for compilation; otherwise, false. false specifies that release binaries will be used for compilation. The default is false.

The following code example demonstrates how to use the Debug property. This code example is part of a larger example provided for the CompilationSection class.

// Display Debug property.
Console.WriteLine("Debug: {0}",

// Set Debug property.
configSection.Debug = false;

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0