94 references to Debug
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
CSharpCompiler.cs (2)
188OptimizationLevel.Debug; 193OptimizationLevel.Debug :
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
CSharpCompilerTest.cs (2)
49[InlineData("Development", OptimizationLevel.Debug)] 97Assert.Equal(OptimizationLevel.Debug, compilationOptions.OptimizationLevel);
Microsoft.CodeAnalysis (9)
Compilation\CompilationOptions.cs (1)
357return OptimizationLevel == OptimizationLevel.Debug;
Compilation\OptimizationLevel.cs (7)
51internal static (OptimizationLevel OptimizationLevel, bool DebugPlus) DefaultValues => (OptimizationLevel.Debug, false); 58(OptimizationLevel.Debug, true) => "debug-plus", 59(OptimizationLevel.Debug, false) => "debug", 76optimizationLevel = OptimizationLevel.Debug; 80optimizationLevel = OptimizationLevel.Debug; 84optimizationLevel = OptimizationLevel.Debug; 95return value >= OptimizationLevel.Debug && value <= OptimizationLevel.Release;
Emit\EditAndContinue\DeletedMethodBody.cs (1)
71var builder = new ILBuilder((ITokenDeferral)context.Module, null, OptimizationLevel.Debug, false);
Microsoft.CodeAnalysis.CSharp (11)
CodeGen\CodeGenerator.cs (1)
116if (optimizations == OptimizationLevel.Debug)
CommandLine\CSharpCommandLineParser.cs (1)
1492optimizationLevel: optimize ? OptimizationLevel.Release : OptimizationLevel.Debug,
Compiler\MethodCompiler.cs (1)
1605if (optimizations == OptimizationLevel.Debug && (object)stateMachineTypeOpt != null)
CSharpCompilationOptions.cs (1)
55OptimizationLevel optimizationLevel = OptimizationLevel.Debug,
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
530if (F.Compilation.Options.OptimizationLevel == OptimizationLevel.Debug) 680if (F.Compilation.Options.OptimizationLevel == OptimizationLevel.Debug)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
146bool isDebugBuild = F.Compilation.Options.OptimizationLevel == OptimizationLevel.Debug;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (1)
167if (Manager.Compilation.Options.OptimizationLevel == OptimizationLevel.Debug)
Symbols\Compilation_WellKnownMembers.cs (3)
490if (Options.OptimizationLevel != OptimizationLevel.Debug) 504if (Options.OptimizationLevel != OptimizationLevel.Debug) 734if (_options.OptimizationLevel == OptimizationLevel.Debug)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
2564Assert.Equal(OptimizationLevel.Debug, parsedArgs.CompilationOptions.OptimizationLevel); 2576Assert.Equal(OptimizationLevel.Debug, parsedArgs.CompilationOptions.OptimizationLevel); 2588Assert.Equal(OptimizationLevel.Debug, parsedArgs.CompilationOptions.OptimizationLevel); 2597Assert.Equal(OptimizationLevel.Debug, parsedArgs.CompilationOptions.OptimizationLevel);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\PatternTests.cs (5)
3554if (options.OptimizationLevel == OptimizationLevel.Debug) 3636if (options.OptimizationLevel == OptimizationLevel.Debug) 3708if (options.OptimizationLevel == OptimizationLevel.Debug) 3784if (options.OptimizationLevel == OptimizationLevel.Debug) 4332if (compilationOptions.OptimizationLevel == OptimizationLevel.Debug)
Emit\CompilationEmitTests.cs (1)
3738var compilation = CreateCompilation(source, options: TestOptions.CreateTestOptions(OutputKind.WindowsRuntimeApplication, OptimizationLevel.Debug));
Emit\DeterministicTests.cs (1)
475.WithOptimizationLevel(OptimizationLevel.Debug)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
313optimizationLevel: OptimizationLevel.Debug,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests_Synthesized.cs (8)
100if (isSynthesized && optimizations == OptimizationLevel.Debug) 189if (optimizationLevel == OptimizationLevel.Debug) 295if (options.OptimizationLevel == OptimizationLevel.Debug) 486AssertEx.SetEqual(options.OptimizationLevel == OptimizationLevel.Debug ? 1686if (optimizationLevel == OptimizationLevel.Debug) 1729if (optimizationLevel == OptimizationLevel.Debug) 1771if (optimizationLevel == OptimizationLevel.Debug) 1810if (optimizationLevel == OptimizationLevel.Debug)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
ObjectFormatterTests.cs (1)
107new VB.VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel: OptimizationLevel.Debug));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CompilationAPITests.cs (1)
1989c2 = c1.WithOptions(TestOptions.CreateTestOptions(OutputKind.WindowsApplication, OptimizationLevel.Debug));
Compilation\CSharpCompilationOptionsTests.cs (1)
389OptimizationLevel optimizationLevel = OptimizationLevel.Debug;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
TestOptions.cs (4)
79public static readonly CSharpCompilationOptions DebugDll = CreateTestOptions(OutputKind.DynamicallyLinkedLibrary, OptimizationLevel.Debug); 80public static readonly CSharpCompilationOptions DebugExe = CreateTestOptions(OutputKind.ConsoleApplication, OptimizationLevel.Debug); 86public static readonly CSharpCompilationOptions DebugWinMD = CreateTestOptions(OutputKind.WindowsRuntimeMetadata, OptimizationLevel.Debug); 89public static readonly CSharpCompilationOptions DebugModule = CreateTestOptions(OutputKind.NetModule, OptimizationLevel.Debug);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (5)
Metadata\WinMdEventTests.cs (5)
2914var comp = CreateEmptyCompilation(source, WinRtRefs, TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 2958var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { ilRef }), TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 3027var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { interfaceILRef, baseILRef }), TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 3093var comp = CreateEmptyCompilation(source, WinRtRefs.Concat(new[] { ilRef }), TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug)); 3288var comp = CreateEmptyCompilation(source, WinRtRefs, TestOptions.CreateTestOptions(kind, OptimizationLevel.Debug));
Microsoft.CodeAnalysis.Scripting (2)
Hosting\CommandLine\CommandLineRunner.cs (1)
174optimizationLevel: OptimizationLevel.Debug,
ScriptOptions.cs (1)
33OptimizationLevel.Debug,
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
ScriptOptionsTests.cs (4)
251[InlineData(OptimizationLevel.Debug)] 256Assert.Equal(OptimizationLevel.Debug, ScriptOptions.Default.OptimizationLevel); 260[InlineData(OptimizationLevel.Debug)] 269[InlineData(OptimizationLevel.Debug)]
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\CompilationExtensions.cs (1)
64if (pdbStream == null && compilation.Options.OptimizationLevel == OptimizationLevel.Debug && options?.DebugInformationFormat != DebugInformationFormat.Embedded)
Microsoft.CodeAnalysis.VisualBasic (12)
CodeGen\CodeGenerator.vb (1)
71If optimizations = OptimizationLevel.Debug Then
CommandLine\VisualBasicCommandLineParser.vb (1)
1447optimizationLevel:=If(optimize, OptimizationLevel.Release, OptimizationLevel.Debug),
Compilation\MethodCompiler.vb (1)
1694If optimizations = OptimizationLevel.Debug AndAlso stateMachineTypeOpt IsNot Nothing Then
Lowering\LocalRewriter\LocalRewriter.vb (1)
145Return Me.Compilation.Options.OptimizationLevel = OptimizationLevel.Debug
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
167Dim isDebugBuild As Boolean = F.Compilation.Options.OptimizationLevel = OptimizationLevel.Debug
Symbols\Source\SourceAssemblySymbol.vb (1)
1597If options.OptimizationLevel = OptimizationLevel.Debug Then
Symbols\WellKnownMembers.vb (4)
254If Options.OptimizationLevel <> OptimizationLevel.Debug Then 266If Options.OptimizationLevel <> OptimizationLevel.Debug Then 282If Options.OptimizationLevel <> OptimizationLevel.Debug Then 290If Options.OptimizationLevel <> OptimizationLevel.Debug Then
VisualBasicCompilationOptions.vb (2)
81Optional optimizationLevel As OptimizationLevel = OptimizationLevel.Debug, 1288Optional optimizationLevel As OptimizationLevel = OptimizationLevel.Debug,
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
1695Assert.Equal(OptimizationLevel.Debug, parsedArgs.CompilationOptions.OptimizationLevel) ' default 1703Assert.Equal(OptimizationLevel.Debug, parsedArgs.CompilationOptions.OptimizationLevel)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (11)
Attributes\AttributeTests_Synthesized.vb (9)
105Dim expected = If(optimizationLevel = OptimizationLevel.Debug, 111If optimizationLevel = OptimizationLevel.Debug Then 117If optimizationLevel = OptimizationLevel.Debug Then 123If optimizationLevel = OptimizationLevel.Debug Then 473Dim expected = If(optimizationLevel = OptimizationLevel.Debug, 503Dim expected = If(optimizationLevel = OptimizationLevel.Debug, 540If optimizationLevel = OptimizationLevel.Debug Then 552If optimizationLevel = OptimizationLevel.Debug Then 1049If optimizations = OptimizationLevel.Debug Then
PDB\PDBTests.vb (1)
4364optimizationLevel:=OptimizationLevel.Debug,
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
202optimizationLevel:=OptimizationLevel.Debug,
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (3)
TestOptions.vb (3)
30Public Shared ReadOnly DebugDll As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary, optimizationLevel:=OptimizationLevel.Debug).WithParseOptions(Regular) 31Public Shared ReadOnly DebugExe As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.ConsoleApplication, optimizationLevel:=OptimizationLevel.Debug).WithParseOptions(Regular) 35Public Shared ReadOnly DebugWinMD As VisualBasicCompilationOptions = New VisualBasicCompilationOptions(OutputKind.WindowsRuntimeMetadata, optimizationLevel:=OptimizationLevel.Debug).WithParseOptions(Regular)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
1546await AssertCSCompilationOptionsAsync(OptimizationLevel.Debug, options => options.OptimizationLevel);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
146.WithOptimizationLevel(GetBooleanOption(CompilerOptions.OPTID_OPTIMIZATIONS) ? OptimizationLevel.Release : OptimizationLevel.Debug)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (1)
90.WithOptimizationLevel(If(compilerOptions.bOptimize, OptimizationLevel.Release, OptimizationLevel.Debug)) _