457 references to DebugInformationFormat
Microsoft.CodeAnalysis (30)
CommandLine\CommandLineArguments.cs (1)
356=> EmitPdb && EmitOptions.DebugInformationFormat != DebugInformationFormat.Embedded;
Compilation\Compilation.cs (10)
2785if (options?.DebugInformationFormat == DebugInformationFormat.Embedded) 2817if (options?.DebugInformationFormat == DebugInformationFormat.Embedded && 2851options?.DebugInformationFormat != DebugInformationFormat.Embedded) 2893bool embedPdb = options.DebugInformationFormat == DebugInformationFormat.Embedded; 3174Debug.Assert(moduleBeingBuilt.DebugInformationFormat != DebugInformationFormat.Embedded || pdbStreamProvider == null); 3178if (moduleBeingBuilt.DebugInformationFormat == DebugInformationFormat.Embedded || pdbStreamProvider != null) 3187if (moduleBeingBuilt.DebugInformationFormat == DebugInformationFormat.Embedded && !RoslynString.IsNullOrEmpty(pePdbFilePath)) 3205if (moduleBeingBuilt.DebugInformationFormat == DebugInformationFormat.Pdb && pdbStreamProvider != null) 3217moduleBeingBuilt.DebugInformationFormat != DebugInformationFormat.PortablePdb || pdbStreamProvider == null 3383var nativePdbWriter = (moduleBeingBuilt.DebugInformationFormat != DebugInformationFormat.Pdb) ? null :
Emit\CommonPEModuleBuilder.cs (1)
70internal DebugInformationFormat DebugInformationFormat => EmitOptions.DebugInformationFormat;
Emit\DebugInformationFormat.cs (6)
16internal static bool IsValid(this DebugInformationFormat value) 18return value >= DebugInformationFormat.Pdb && value <= DebugInformationFormat.Embedded; 21internal static bool IsPortable(this DebugInformationFormat value) 23return value == DebugInformationFormat.PortablePdb || value == DebugInformationFormat.Embedded;
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
84debugMetadataOpt: (context.Module.DebugInformationFormat == DebugInformationFormat.PortablePdb) ? new MetadataBuilder() : null, 96Debug.Assert(context.Module.DebugInformationFormat != DebugInformationFormat.Embedded);
Emit\EmitOptions.cs (8)
21: new EmitOptions().WithDebugInformationFormat(DebugInformationFormat.PortablePdb); 72public DebugInformationFormat DebugInformationFormat { get; private set; } 126DebugInformationFormat debugInformationFormat, 155DebugInformationFormat debugInformationFormat, 186DebugInformationFormat debugInformationFormat, 219DebugInformationFormat debugInformationFormat = 0, 235DebugInformationFormat = (debugInformationFormat == 0) ? DebugInformationFormat.Pdb : debugInformationFormat; 440public EmitOptions WithDebugInformationFormat(DebugInformationFormat format)
PEWriter\FullMetadataWriter.cs (2)
54case DebugInformationFormat.PortablePdb: 58case DebugInformationFormat.Embedded:
Microsoft.CodeAnalysis.CSharp (9)
CommandLine\CSharpCommandLineParser.cs (7)
72DebugInformationFormat debugInformationFormat = PathUtilities.IsUnixLikePlatform ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb; 794debugInformationFormat = PathUtilities.IsUnixLikePlatform ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb; 797debugInformationFormat = DebugInformationFormat.PortablePdb; 800debugInformationFormat = DebugInformationFormat.Embedded;
Emitter\EditAndContinue\EmitHelpers.cs (2)
35var emitOptions = EmitOptions.Default.WithDebugInformationFormat(baseline.HasPortablePdb ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (13)
CommandLineTests.cs (13)
1897var platformPdbKind = PathUtilities.IsUnixLikePlatform ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb; 1957Assert.Equal(DebugInformationFormat.PortablePdb, parsedArgs.EmitOptions.DebugInformationFormat); 1964Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat); 2007Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat); 2013Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat); 12089var platformPdbKind = PathUtilities.IsUnixLikePlatform ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb; 12091var list = new List<Tuple<string, DebugInformationFormat>>() 12093Tuple.Create("portable", DebugInformationFormat.PortablePdb), 12096Tuple.Create("embedded", DebugInformationFormat.Embedded)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (3)
293emitOptions = new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb, pdbFilePath: pdbFilePath); 298emitOptions = new EmitOptions(debugInformationFormat: DebugInformationFormat.Embedded); 304emitOptions = emitOptions.WithDebugInformationFormat(DebugInformationFormat.Pdb);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (72)
Emit\CompilationEmitTests.cs (4)
2613options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded).WithIncludePrivateMembers(false)); 2639.WithDebugInformationFormat(DebugInformationFormat.Embedded))); 5189var result = compilation.Emit(output, pdbStream, options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb)); 5469.WithDebugInformationFormat(DebugInformationFormat.PortablePdb);
Emit\DeterministicTests.cs (11)
51private (ImmutableArray<byte> pe, ImmutableArray<byte> pdb) EmitDeterministic(string source, Platform platform, DebugInformationFormat pdbFormat, bool optimize) 59if (pdbFormat == DebugInformationFormat.Pdb) 64var pdbStream = (pdbFormat == DebugInformationFormat.Embedded) ? null : new MemoryStream(); 152var result1 = EmitDeterministic(CompareAllBytesEmitted_Source, Platform.X64, DebugInformationFormat.Embedded, optimize: false); 153var result2 = EmitDeterministic(CompareAllBytesEmitted_Source, Platform.Arm64, DebugInformationFormat.Embedded, optimize: false); 210public void CompareAllBytesEmitted_Release(DebugInformationFormat pdbFormat) 213if (pdbFormat == DebugInformationFormat.Pdb) 237public void CompareAllBytesEmitted_Debug(DebugInformationFormat pdbFormat) 240if (pdbFormat == DebugInformationFormat.Pdb) 489.WithDebugInformationFormat(DebugInformationFormat.PortablePdb) 496pdbStream: optEmit.DebugInformationFormat != DebugInformationFormat.Embedded ? streamPdb : null,
Emit\EditAndContinue\EditAndContinuePdbTests.cs (3)
24public void MethodExtents(DebugInformationFormat format) 173if (format == DebugInformationFormat.PortablePdb) 293if (format == DebugInformationFormat.PortablePdb)
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (2)
208public void AddAsyncMethod(DebugInformationFormat format) 7176public void Awaiters_MultipleGenerations(DebugInformationFormat format)
Emit\EditAndContinue\EditAndContinueTests.cs (2)
461var bytes0 = compilation0.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb)); 11537var bytes0 = compilation0.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb));
PDB\CheckSumTest.cs (2)
252</symbols>", format: DebugInformationFormat.PortablePdb); 321</symbols>", format: DebugInformationFormat.PortablePdb);
PDB\PDBAsyncTests.cs (1)
2039options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb));
PDB\PDBConstantTests.cs (10)
63</symbols>", format: DebugInformationFormat.Pdb); 83</symbols>", format: DebugInformationFormat.PortablePdb); 127</symbols>", format: DebugInformationFormat.Pdb); 145</symbols>", format: DebugInformationFormat.PortablePdb); 629</symbols>", format: DebugInformationFormat.Pdb); 647</symbols>", format: DebugInformationFormat.PortablePdb); 689</symbols>", format: DebugInformationFormat.Pdb); 707</symbols>", format: DebugInformationFormat.PortablePdb); 746</symbols>", format: DebugInformationFormat.Pdb); 764</symbols>", format: DebugInformationFormat.PortablePdb);
PDB\PDBEmbeddedSourceTests.cs (4)
22[InlineData(DebugInformationFormat.PortablePdb)] 23[InlineData(DebugInformationFormat.Pdb)] 25public void StandalonePdb(DebugInformationFormat format) 108EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded),
PDB\PDBIteratorTests.cs (1)
1633options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb));
PDB\PDBLambdaTests.cs (2)
1988</symbols>", format: CodeAnalysis.Emit.DebugInformationFormat.Pdb); 2101</symbols>", format: CodeAnalysis.Emit.DebugInformationFormat.Pdb);
PDB\PDBSourceLinkTests.cs (6)
30public void SourceLink(DebugInformationFormat format) 83var peBlob = c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded), sourceLinkStream: new MemoryStream(sourceLinkBlob)); 106public void SourceLink_Errors(DebugInformationFormat format) 122var pdbStream = format != DebugInformationFormat.Embedded ? new MemoryStream() : null; 153options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Pdb), 170public void SourceLink_Empty(DebugInformationFormat format)
PDB\PDBTests.cs (16)
145", format: DebugInformationFormat.PortablePdb, options: PdbValidationOptions.ExcludeMethods); 420</symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); 452</symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); 491</symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); 511</symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); 676", format: DebugInformationFormat.PortablePdb); 698", format: DebugInformationFormat.Pdb); 4897</symbols>", format: DebugInformationFormat.Pdb); 4913</symbols>", format: DebugInformationFormat.PortablePdb); 5008</symbols>", format: DebugInformationFormat.PortablePdb); 12332", format: DebugInformationFormat.Pdb); 12361</symbols>", format: DebugInformationFormat.PortablePdb); 12411", format: DebugInformationFormat.Pdb); 12429</symbols>", format: DebugInformationFormat.PortablePdb); 12865var result = compilation.Emit(outStream, options: new EmitOptions(pdbFilePath: "test\\?.pdb", debugInformationFormat: DebugInformationFormat.Embedded)); 12977", options: PdbValidationOptions.IncludeModuleDebugInfo, format: DebugInformationFormat.Pdb);
PDB\PDBUsingTests.cs (1)
2777c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream: pdbStream);
PDB\PortablePdbTests.cs (6)
45var peBlob = c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream: pdbStream); 169WithDebugInformationFormat(DebugInformationFormat.Embedded). 229WithDebugInformationFormat(DebugInformationFormat.Embedded). 304c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream: pdbStream, sourceLinkStream: new MemoryStream(sourceLinkBlob)); 344var peBlob = c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded), sourceLinkStream: new MemoryStream(sourceLinkBlob)); 382var result = c.Emit(new MemoryStream(), new MemoryStream(), options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), sourceLinkStream: sourceLinkStream);
PDB\TypeDefinitionDocumentTests.cs (1)
467var pe = compilation.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream: pdbStream);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\NumericIntPtrTests.cs (2)
10309var emitOptions = new EmitOptions(runtimeMetadataVersion: "v5.1", debugInformationFormat: DebugInformationFormat.PortablePdb); 11767emitOptions: new EmitOptions(runtimeMetadataVersion: "v5.1", debugInformationFormat: DebugInformationFormat.PortablePdb),
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (161)
CompileExpressionsTests.cs (10)
742if (runtime.DebugFormat == DebugInformationFormat.Pdb) 804if (runtime.DebugFormat == DebugInformationFormat.Pdb) 872if (runtime.DebugFormat == DebugInformationFormat.Pdb) 962if (runtime.DebugFormat == DebugInformationFormat.Pdb) 1008if (runtime.DebugFormat == DebugInformationFormat.Pdb) 1097if (runtime.DebugFormat == DebugInformationFormat.Pdb) 1254format: Microsoft.CodeAnalysis.Emit.DebugInformationFormat.Pdb); 1292format: Microsoft.CodeAnalysis.Emit.DebugInformationFormat.PortablePdb); 1430format: Microsoft.CodeAnalysis.Emit.DebugInformationFormat.Pdb); 1466format: Microsoft.CodeAnalysis.Emit.DebugInformationFormat.PortablePdb);
DynamicTests.cs (9)
313if (runtime.DebugFormat == DebugInformationFormat.PortablePdb) 333if (runtime.DebugFormat == DebugInformationFormat.PortablePdb) 391if (runtime.DebugFormat == DebugInformationFormat.PortablePdb) 448if (runtime.DebugFormat == DebugInformationFormat.PortablePdb) 467if (runtime.DebugFormat == DebugInformationFormat.PortablePdb) 488if (runtime.DebugFormat == DebugInformationFormat.PortablePdb) 545if (runtime.DebugFormat == DebugInformationFormat.PortablePdb) 572if (runtime.DebugFormat == DebugInformationFormat.PortablePdb) 613if (runtime.DebugFormat == DebugInformationFormat.PortablePdb)
ExpressionCompilerTestBase.cs (15)
57internal static void WithRuntimeInstance(Compilation compilation, Action<RuntimeInstance> validator, DebugInformationFormat targetDebugFormat = 0) 62internal static void WithRuntimeInstance(Compilation compilation, IEnumerable<MetadataReference> references, Action<RuntimeInstance> validator, DebugInformationFormat targetDebugFormat = 0) 73DebugInformationFormat targetDebugFormat = 0) 75foreach (var debugFormat in new[] { DebugInformationFormat.Pdb, DebugInformationFormat.PortablePdb }) 99DebugInformationFormat debugFormat = DebugInformationFormat.Pdb, 111var instance = RuntimeInstance.Create(module, references, DebugInformationFormat.Pdb); 319DebugInformationFormat debugFormat = DebugInformationFormat.Pdb) 348DebugInformationFormat debugFormat = DebugInformationFormat.Pdb) 367DebugInformationFormat debugFormat = DebugInformationFormat.Pdb)
ExpressionCompilerTests.cs (66)
7982atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8024atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8067atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8112atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8155atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8199atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8232atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8277atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8323atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8370atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8414atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8457atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8500atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8543atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8576atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8619atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8662atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8705atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8750atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8795atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8840atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8882atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8924atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 8966atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9009atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9054atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9099atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9142atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9178atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9214atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9240atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9275atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9389atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9454atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9494atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9536atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9566atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9596atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9625atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9666atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9709atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9752atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9790atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9817atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9888atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9928atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 9971atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10011atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10050atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10089atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10131atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10172atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10210atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10278atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10320atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10361atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10404atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10440atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10467atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10490atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10523atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10549atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10585atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10612atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10641atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb, 10680atLineNumber: 100, debugFormat: DebugInformationFormat.PortablePdb,
LocalsTests.cs (60)
6455WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 6506WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 6558WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 6612WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 6664WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 6717WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 6757WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 6811WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 6866WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 6922WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 6975WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7027WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7079WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7131WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7171WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7223WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7275WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7327WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7381WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7435WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7489WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7540WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7591WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7642WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7694WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7748WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7802WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7855WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7897WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7939WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 7971WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8019WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8068WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8119WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8155WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8191WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8226WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8276WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8328WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8380WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8427WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8460WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8507WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8554WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8604WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8653WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8699WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8737WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8785WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8835WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8884WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8929WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8962WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 8991WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 9033WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 9065WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 9110WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 9143WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 9178WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime => 9213WithRuntimeInstance(compilation0, targetDebugFormat: DebugInformationFormat.PortablePdb, validator: runtime =>
ReferencedModulesTests.cs (1)
798using (var runtime = new RuntimeInstance(modules, DebugInformationFormat.Pdb))
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (4)
ScriptTests.cs (4)
76public void TestEmit_PortablePdb() => TestEmit(DebugInformationFormat.PortablePdb); 79public void TestEmit_WindowsPdb() => TestEmit(DebugInformationFormat.Pdb); 81private void TestEmit(DebugInformationFormat format) 96portablePdbStreamOpt: (format == DebugInformationFormat.PortablePdb) ? pdbStream : null,
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Compilation\CompilationAPITests.cs (4)
401debugInformationFormat: (DebugInformationFormat)(-1), 450Assert.Throws<ArgumentException>("pdbStream", () => comp.Emit(peStream: new MemoryStream(), pdbStream: new MemoryStream(), options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded))); 455options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), 467options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb),
Symbols\ModuleInitializers\ModuleInitializersTests.cs (2)
1155emitOptions: EmitOptions.Default.WithDebugInformationFormat(PathUtilities.IsUnixLikePlatform ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
2844ca.VerifyEmitDiagnostics(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb),
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
98public static readonly EmitOptions NativePdbEmit = EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Pdb);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (23)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (5)
46[InlineData(DebugInformationFormat.PortablePdb, true)] 47[InlineData(DebugInformationFormat.PortablePdb, false)] 48[InlineData(DebugInformationFormat.Pdb, true)] 49public void DebugInfo(DebugInformationFormat format, bool useSymReader) 74if (format == DebugInformationFormat.PortablePdb && useSymReader)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (10)
290DebugInformationFormat pdbFormat = DebugInformationFormat.PortablePdb, 303DebugInformationFormat pdbFormat = DebugInformationFormat.PortablePdb, 333private Guid EmitLibrary(Compilation compilation, DebugInformationFormat pdbFormat = DebugInformationFormat.PortablePdb) 2825var (peImage, pdbImage) = compilationV1.EmitToArrays(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb)); 3326var (peImageA, pdbImageA) = compilationA.EmitToArrays(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb)); 3332var (peImageB, pdbImageB) = compilationB.EmitToArrays(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb)); 3498var peImage = compilationV1.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb), pdbStream: pdbStream);
Emit\CompilationOutputFilesTests.cs (1)
33var peImage = compilation.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb), pdbStream: pdbStream);
Emit\CompilationOutputsTests.cs (7)
49[InlineData(DebugInformationFormat.PortablePdb)] 50[InlineData(DebugInformationFormat.Embedded)] 51[InlineData(DebugInformationFormat.Pdb)] 52public void AssemblyAndPdb(DebugInformationFormat format) 57var pdbStream = (format != DebugInformationFormat.Embedded) ? new MemoryStream() : null; 82Assert.Equal(format != DebugInformationFormat.Pdb, encReader.IsPortable); 87if (format == DebugInformationFormat.Embedded)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler.Utilities (8)
ExpressionCompilerTestHelpers.cs (3)
484DebugInformationFormat debugFormat = DebugInformationFormat.Pdb, 790var emitOptions = EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0").WithDebugInformationFormat(DebugInformationFormat.PortablePdb);
RuntimeInstance.cs (5)
19internal readonly DebugInformationFormat DebugFormat; 21internal RuntimeInstance(ImmutableArray<ModuleInstance> modules, DebugInformationFormat debugFormat) 37return new RuntimeInstance(ImmutableArray.CreateRange(modules), DebugInformationFormat.Pdb); 43DebugInformationFormat debugFormat, 62DebugInformationFormat debugFormat)
Microsoft.CodeAnalysis.Rebuild (3)
CompilationFactory.cs (3)
115DebugInformationFormat debugInformationFormat; 123debugInformationFormat = DebugInformationFormat.Embedded; 133debugInformationFormat = DebugInformationFormat.PortablePdb;
Microsoft.CodeAnalysis.Rebuild.UnitTests (7)
CompilationOptionsReaderTests.cs (1)
32var peBytes = compilation.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.Embedded));
CSharpRebuildTests.cs (1)
27var originalBytes = original.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.Embedded));
DeterministicKeyBuilderTests.cs (1)
510DebugInformationFormat debugInformationFormat,
OptionRoundTripTests.cs (1)
83RoundTripUtil.VerifyRoundTrip(original, new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb, pdbFilePath: "test.pdb"));
RoundTripUtil.cs (3)
75emitOptions ??= new EmitOptions(debugInformationFormat: DebugInformationFormat.Embedded); 138case DebugInformationFormat.Embedded: 148case DebugInformationFormat.PortablePdb:
Microsoft.CodeAnalysis.Scripting (3)
Utilities\PdbHelpers.cs (3)
14public static DebugInformationFormat GetPlatformSpecificDebugInformationFormat() 19return DebugInformationFormat.PortablePdb; 23return DebugInformationFormat.Pdb;
Microsoft.CodeAnalysis.Test.Utilities (10)
CommonTestBase.cs (4)
686new object[] { DebugInformationFormat.Pdb }, 687new object[] { DebugInformationFormat.PortablePdb } 694new object[] { DebugInformationFormat.PortablePdb } 703new object[] { DebugInformationFormat.Embedded }
Compilation\CompilationExtensions.cs (3)
64if (pdbStream == null && compilation.Options.OptimizationLevel == OptimizationLevel.Debug && options?.DebugInformationFormat != DebugInformationFormat.Embedded) 68options = (options ?? EmitOptions.Default).WithDebugInformationFormat(DebugInformationFormat.PortablePdb); 71var discretePdb = (object)options != null && options.DebugInformationFormat != DebugInformationFormat.Embedded;
Compilation\IRuntimeEnvironment.cs (2)
242emitOptions ??= EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded); 248var pdbStream = (emitOptions.DebugInformationFormat != DebugInformationFormat.Embedded) ? new MemoryStream() : null;
PDB\DeterministicBuildCompilationTestHelpers.cs (1)
37debugInformationFormat: DebugInformationFormat.Embedded,
Microsoft.CodeAnalysis.UnitTests (5)
Emit\EmitOptionsTests.cs (5)
64PathUtilities.IsUnixLikePlatform ? DebugInformationFormat.Pdb : DebugInformationFormat.PortablePdb); 103debugInformationFormat: DebugInformationFormat.Embedded, 116debugInformationFormat: DebugInformationFormat.Embedded, 130debugInformationFormat: DebugInformationFormat.Embedded,
Microsoft.CodeAnalysis.VisualBasic (11)
CodeGen\EmitStatement.vb (1)
1439If _module.debugInformationFormat = DebugInformationFormat.Pdb Then
CommandLine\VisualBasicCommandLineParser.vb (7)
100Dim debugInformationFormat As DebugInformationFormat = If(PathUtilities.IsUnixLikePlatform, DebugInformationFormat.PortablePdb, DebugInformationFormat.Pdb) 715debugInformationFormat = If(PathUtilities.IsUnixLikePlatform, DebugInformationFormat.PortablePdb, DebugInformationFormat.Pdb) 717debugInformationFormat = DebugInformationFormat.PortablePdb 719debugInformationFormat = DebugInformationFormat.Embedded
Compilation\MethodCompiler.vb (1)
1643Dim stateMachineHoistedLocalScopes = If(kickoffMethod Is Nothing OrElse moduleBuilder.DebugInformationFormat = DebugInformationFormat.Pdb,
Emit\EditAndContinue\EmitHelpers.vb (2)
32Dim emitOpts = EmitOptions.Default.WithDebugInformationFormat(If(baseline.HasPortablePdb, DebugInformationFormat.PortablePdb, DebugInformationFormat.Pdb))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (6)
CommandLineTests.vb (6)
3033Dim platformPdbKind = If(PathUtilities.IsUnixLikePlatform, DebugInformationFormat.PortablePdb, DebugInformationFormat.Pdb) 3077Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, DebugInformationFormat.PortablePdb) 3082Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, DebugInformationFormat.Embedded) 3117Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat) 3122Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (34)
Emit\EditAndContinue\EditAndContinuePdbTests.vb (6)
19<InlineData(DebugInformationFormat.PortablePdb)> '<MemberData(NameOf(ExternalPdbFormats))> 21Public Sub MethodExtents(format As DebugInformationFormat) 176If format = DebugInformationFormat.PortablePdb Then 250</symbols>, format:=DebugInformationFormat.PortablePdb) 277If format = DebugInformationFormat.PortablePdb Then 335</symbols>, format:=DebugInformationFormat.PortablePdb)
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (2)
8315format:=DebugInformationFormat.PortablePdb) 8424format:=DebugInformationFormat.PortablePdb)
PDB\ChecksumTests.vb (3)
268</symbols>, format:=DebugInformationFormat.PortablePdb) 330</symbols>, format:=DebugInformationFormat.PortablePdb) 378</symbols>, format:=DebugInformationFormat.PortablePdb)
PDB\PDBAsyncTests.vb (1)
954Dim result = compilation.Emit(peStream, pdbStream, options:=EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb))
PDB\PDBEmbeddedSourceTests.vb (4)
17<InlineData(DebugInformationFormat.PortablePdb)> 18<InlineData(DebugInformationFormat.Pdb)> 20Public Sub StandalonePdb(format As DebugInformationFormat) 90EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded),
PDB\PDBExternalSourceDirectiveTests.vb (5)
73</symbols>, format:=DebugInformationFormat.PortablePdb) 180</symbols>, format:=DebugInformationFormat.PortablePdb) 576</symbols>, format:=DebugInformationFormat.PortablePdb) 758</symbols>, format:=DebugInformationFormat.Pdb) 800</symbols>, format:=DebugInformationFormat.PortablePdb)
PDB\PDBIteratorTests.vb (1)
553Dim result = compilation.Emit(peStream, pdbStream, options:=EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb))
PDB\PDBLambdaTests.vb (1)
536</symbols>, format:=DebugInformationFormat.PortablePdb)
PDB\PDBTests.vb (3)
98", format:=DebugInformationFormat.PortablePdb, options:=PdbValidationOptions.ExcludeMethods) 4645Dim result = Compilation.Emit(outStream, options:=New EmitOptions(pdbFilePath:="test\\?.pdb", debugInformationFormat:=DebugInformationFormat.Embedded)) 4750", options:=PdbValidationOptions.IncludeModuleDebugInfo, format:=DebugInformationFormat.Pdb)
PDB\PortablePdbTests.vb (6)
40compilation.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream:=pdbStream) 79WithDebugInformationFormat(DebugInformationFormat.Embedded). 132WithDebugInformationFormat(DebugInformationFormat.Embedded). 200c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream:=pdbStream, sourceLinkStream:=New MemoryStream(sourceLinkBlob)) 234Dim peBlob = c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded), sourceLinkStream:=New MemoryStream(sourceLinkBlob)) 269Dim result = c.Emit(New MemoryStream(), New MemoryStream(), options:=EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), sourceLinkStream:=sourceLinkStream)
PDB\TypeDefinitionDocumentTests.vb (1)
349Dim pe = compilation.EmitToArray(EmitOptions.[Default].WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream:=pdbStream)
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
175Dim emitOptions = New EmitOptions(debugInformationFormat:=DebugInformationFormat.Embedded)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (14)
ExpressionCompilerTestBase.vb (6)
66For Each debugFormat In {DebugInformationFormat.Pdb, DebugInformationFormat.PortablePdb} 82Optional debugFormat As DebugInformationFormat = DebugInformationFormat.Pdb, 94Dim instance = RuntimeInstance.Create([module], references, DebugInformationFormat.Pdb) 327Dim runtime = CreateRuntimeInstance(compilation0, debugFormat:=If(includeSymbols, DebugInformationFormat.Pdb, Nothing))
ImportDebugInfoTests.vb (8)
43If runtime.DebugFormat = DebugInformationFormat.PortablePdb Then 82If runtime.DebugFormat = DebugInformationFormat.PortablePdb Then 103If runtime.DebugFormat = DebugInformationFormat.PortablePdb Then 158If runtime.DebugFormat = DebugInformationFormat.PortablePdb Then 401If runtime.DebugFormat = DebugInformationFormat.PortablePdb Then 458Dim expectedNamespaces = If(runtime.DebugFormat = DebugInformationFormat.PortablePdb, 514If runtime.DebugFormat = DebugInformationFormat.PortablePdb Then 578Dim expectedNamespaces = If(runtime.DebugFormat = DebugInformationFormat.PortablePdb,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Compilation\CompilationAPITests.vb (4)
455Assert.Throws(Of ArgumentException)("pdbStream", Sub() comp.Emit(peStream:=New MemoryStream(), pdbStream:=New MemoryStream(), options:=EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded))) 460options:=EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), 472options:=EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), 496debugInformationFormat:=CType(-1, DebugInformationFormat),
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (6)
28[InlineData(DebugInformationFormat.PortablePdb, true)] 29[InlineData(DebugInformationFormat.PortablePdb, false)] 30[InlineData(DebugInformationFormat.Embedded, false)] 31public void AssemblyAndPdb(DebugInformationFormat pdbFormat, bool exactPdbPath) 35var pdbFile = (pdbFormat == DebugInformationFormat.Embedded) ? null : dir.CreateFile("lib.pdb"); 91var peImage = compilation.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb, pdbFilePath: debugDirPdbPath), pdbStream: pdbStream);
Roslyn.Test.PdbUtilities (21)
Reader\PdbValidation.cs (21)
41DebugInformationFormat format = 0, 55DebugInformationFormat format = 0, 70DebugInformationFormat format = 0, 85DebugInformationFormat format = 0, 108DebugInformationFormat format = DebugInformationFormat.Pdb, 119DebugInformationFormat format = DebugInformationFormat.Pdb, 130DebugInformationFormat format, 135Assert.NotEqual(default(DebugInformationFormat), format); 136Assert.NotEqual(DebugInformationFormat.Embedded, format); 157DebugInformationFormat format = 0, 171DebugInformationFormat format = 0, 194DebugInformationFormat format = 0, 208DebugInformationFormat format = 0, 232DebugInformationFormat format, 238Assert.NotEqual(DebugInformationFormat.Embedded, format); 240bool testWindowsPdb = (format == 0 || format == DebugInformationFormat.Pdb) && ExecutionConditionUtil.IsWindows; 241bool testPortablePdb = format is 0 or DebugInformationFormat.PortablePdb; 527var emitOptions = EmitOptions.Default.WithDebugInformationFormat(portable ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb);