287 references to DebugInformationFormat
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
127debugInformationFormat: DebugInformationFormat.PortablePdb,
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
127debugInformationFormat: DebugInformationFormat.PortablePdb,
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (6)
CSharpCompiler.cs (5)
126DebugInformationFormat debugInformationFormat; 129debugInformationFormat = DebugInformationFormat.PortablePdb; 142debugInformationFormat = DebugInformationFormat.PortablePdb; 147debugInformationFormat = DebugInformationFormat.PortablePdb; 151debugInformationFormat = DebugInformationFormat.PortablePdb;
RuntimeViewCompiler.cs (1)
343var emitPdbFile = _csharpCompiler.EmitPdb && emitOptions.DebugInformationFormat != DebugInformationFormat.Embedded;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
CSharpCompilerTest.cs (2)
168Assert.Equal(DebugInformationFormat.PortablePdb, emitOptions.DebugInformationFormat); 183Assert.Equal(DebugInformationFormat.PortablePdb, emitOptions.DebugInformationFormat);
RuntimeViewCompilerTest.cs (1)
787EmitOptionsSettable = new EmitOptions(debugInformationFormat: DebugInformationFormat.Embedded),
Microsoft.CodeAnalysis (30)
CommandLine\CommandLineArguments.cs (1)
361=> EmitPdb && EmitOptions.DebugInformationFormat != DebugInformationFormat.Embedded;
Compilation\Compilation.cs (10)
2822if (options?.DebugInformationFormat == DebugInformationFormat.Embedded) 2854if (options?.DebugInformationFormat == DebugInformationFormat.Embedded && 2888options?.DebugInformationFormat != DebugInformationFormat.Embedded) 2930bool embedPdb = options.DebugInformationFormat == DebugInformationFormat.Embedded; 3211Debug.Assert(moduleBeingBuilt.DebugInformationFormat != DebugInformationFormat.Embedded || pdbStreamProvider == null); 3215if (moduleBeingBuilt.DebugInformationFormat == DebugInformationFormat.Embedded || pdbStreamProvider != null) 3224if (moduleBeingBuilt.DebugInformationFormat == DebugInformationFormat.Embedded && !RoslynString.IsNullOrEmpty(pePdbFilePath)) 3242if (moduleBeingBuilt.DebugInformationFormat == DebugInformationFormat.Pdb && pdbStreamProvider != null) 3254moduleBeingBuilt.DebugInformationFormat != DebugInformationFormat.PortablePdb || pdbStreamProvider == null 3418var 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)
85debugMetadataOpt: (context.Module.DebugInformationFormat == DebugInformationFormat.PortablePdb) ? new MetadataBuilder() : null, 97Debug.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)
55case DebugInformationFormat.PortablePdb: 59case DebugInformationFormat.Embedded:
Microsoft.CodeAnalysis.CSharp (9)
CommandLine\CSharpCommandLineParser.cs (7)
72DebugInformationFormat debugInformationFormat = PathUtilities.IsUnixLikePlatform ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb; 798debugInformationFormat = PathUtilities.IsUnixLikePlatform ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb; 801debugInformationFormat = DebugInformationFormat.PortablePdb; 804debugInformationFormat = DebugInformationFormat.Embedded;
Emitter\EditAndContinue\EmitHelpers.cs (2)
37var emitOptions = EmitOptions.Default.WithDebugInformationFormat(baseline.HasPortablePdb ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (13)
CommandLineTests.cs (13)
1960var platformPdbKind = PathUtilities.IsUnixLikePlatform ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb; 2020Assert.Equal(DebugInformationFormat.PortablePdb, parsedArgs.EmitOptions.DebugInformationFormat); 2027Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat); 2070Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat); 2076Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat); 12381var platformPdbKind = PathUtilities.IsUnixLikePlatform ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb; 12383var list = new List<Tuple<string, DebugInformationFormat>>() 12385Tuple.Create("portable", DebugInformationFormat.PortablePdb), 12388Tuple.Create("embedded", DebugInformationFormat.Embedded)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (3)
301emitOptions = new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb, pdbFilePath: pdbFilePath); 306emitOptions = new EmitOptions(debugInformationFormat: DebugInformationFormat.Embedded); 312emitOptions = emitOptions.WithDebugInformationFormat(DebugInformationFormat.Pdb);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (15)
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,
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (60)
Emit\EditAndContinue\EditAndContinuePdbTests.cs (3)
24public void MethodExtents(DebugInformationFormat format) 173if (format == DebugInformationFormat.PortablePdb) 295if (format == DebugInformationFormat.PortablePdb)
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (2)
208public void AddAsyncMethod(DebugInformationFormat format) 8050public void Awaiters_MultipleGenerations(DebugInformationFormat format)
Emit\EditAndContinue\EditAndContinueTests.cs (3)
521var bytes0 = compilation0.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb)); 12016var bytes0 = compilation0.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb)); 12106var bytes0 = compilation0.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb));
Emit\NumericIntPtrTests.cs (2)
10343var emitOptions = new EmitOptions(runtimeMetadataVersion: "v5.1", debugInformationFormat: DebugInformationFormat.PortablePdb); 11824emitOptions: new EmitOptions(runtimeMetadataVersion: "v5.1", debugInformationFormat: 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)
1997</symbols>", format: CodeAnalysis.Emit.DebugInformationFormat.Pdb); 2125</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)
151", format: DebugInformationFormat.PortablePdb, options: PdbValidationOptions.ExcludeMethods); 426</symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); 458</symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); 497</symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); 517</symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); 682", format: DebugInformationFormat.PortablePdb); 704", format: DebugInformationFormat.Pdb); 4903</symbols>", format: DebugInformationFormat.Pdb); 4919</symbols>", format: DebugInformationFormat.PortablePdb); 5014</symbols>", format: DebugInformationFormat.PortablePdb); 12267", format: DebugInformationFormat.Pdb); 12296</symbols>", format: DebugInformationFormat.PortablePdb); 12346", format: DebugInformationFormat.Pdb); 12364</symbols>", format: DebugInformationFormat.PortablePdb); 12800var result = compilation.Emit(outStream, options: new EmitOptions(pdbFilePath: "test\\?.pdb", debugInformationFormat: DebugInformationFormat.Embedded)); 12912", 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.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 (7)
Compilation\CompilationAPITests.cs (4)
400debugInformationFormat: (DebugInformationFormat)(-1), 449Assert.Throws<ArgumentException>("pdbStream", () => comp.Emit(peStream: new MemoryStream(), pdbStream: new MemoryStream(), options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded))); 454options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), 466options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb),
Symbols\ModuleInitializers\ModuleInitializersTests.cs (2)
1155emitOptions: EmitOptions.Default.WithDebugInformationFormat(PathUtilities.IsUnixLikePlatform ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb),
Symbols\Source\FileModifierTests.cs (1)
853var emitOptions = EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
2870ca.VerifyEmitDiagnostics(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb),
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
101public static readonly EmitOptions NativePdbEmit = EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Pdb);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
Emit\CompilationOutputFilesTests.cs (1)
33var peImage = compilation.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb), pdbStream: pdbStream);
Emit\CompilationOutputsTests.cs (7)
48[InlineData(DebugInformationFormat.PortablePdb)] 49[InlineData(DebugInformationFormat.Embedded)] 50[InlineData(DebugInformationFormat.Pdb)] 51public void AssemblyAndPdb(DebugInformationFormat format) 56var pdbStream = (format != DebugInformationFormat.Embedded) ? new MemoryStream() : null; 81Assert.Equal(format != DebugInformationFormat.Pdb, encReader.IsPortable); 86if (format == DebugInformationFormat.Embedded)
Microsoft.CodeAnalysis.Features (1)
SemanticSearch\AbstractSemanticSearchService.cs (1)
87debugInformationFormat: DebugInformationFormat.PortablePdb,
Microsoft.CodeAnalysis.Features.Test.Utilities (6)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (6)
232DebugInformationFormat pdbFormat = DebugInformationFormat.PortablePdb, 245DebugInformationFormat pdbFormat = DebugInformationFormat.PortablePdb, 275internal Guid EmitLibrary(Compilation compilation, DebugInformationFormat pdbFormat = DebugInformationFormat.PortablePdb)
Microsoft.CodeAnalysis.Features.UnitTests (9)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (5)
45[InlineData(DebugInformationFormat.PortablePdb, true)] 46[InlineData(DebugInformationFormat.PortablePdb, false)] 47[InlineData(DebugInformationFormat.Pdb, true)] 48public void DebugInfo(DebugInformationFormat format, bool useSymReader) 73if (format == DebugInformationFormat.PortablePdb && useSymReader)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (4)
2443var (peImage, pdbImage) = compilationV1.EmitToArrays(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb)); 3009var (peImageA, pdbImageA) = compilationA.EmitToArrays(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb)); 3015var (peImageB, pdbImageB) = compilationB.EmitToArrays(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb)); 3181var peImage = compilationV1.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb), pdbStream: pdbStream);
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 (2)
Utilities\PdbHelpers.cs (2)
12public static DebugInformationFormat GetPlatformSpecificDebugInformationFormat() 16return DebugInformationFormat.PortablePdb;
Microsoft.CodeAnalysis.Test.Utilities (10)
CommonTestBase.cs (4)
721new object[] { DebugInformationFormat.Pdb }, 722new object[] { DebugInformationFormat.PortablePdb } 729new object[] { DebugInformationFormat.PortablePdb } 738new 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)
1438If _module.debugInformationFormat = DebugInformationFormat.Pdb Then
CommandLine\VisualBasicCommandLineParser.vb (7)
100Dim debugInformationFormat As DebugInformationFormat = If(PathUtilities.IsUnixLikePlatform, DebugInformationFormat.PortablePdb, DebugInformationFormat.Pdb) 734debugInformationFormat = If(PathUtilities.IsUnixLikePlatform, DebugInformationFormat.PortablePdb, DebugInformationFormat.Pdb) 736debugInformationFormat = DebugInformationFormat.PortablePdb 738debugInformationFormat = DebugInformationFormat.Embedded
Compilation\MethodCompiler.vb (1)
1668Dim 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)
3034Dim platformPdbKind = If(PathUtilities.IsUnixLikePlatform, DebugInformationFormat.PortablePdb, DebugInformationFormat.Pdb) 3078Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, DebugInformationFormat.PortablePdb) 3083Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, DebugInformationFormat.Embedded) 3118Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat) 3123Assert.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) 279If format = DebugInformationFormat.PortablePdb Then 339</symbols>, format:=DebugInformationFormat.PortablePdb)
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (2)
8275format:=DebugInformationFormat.PortablePdb) 8384format:=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)
892Dim 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.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)
27[InlineData(DebugInformationFormat.PortablePdb, true)] 28[InlineData(DebugInformationFormat.PortablePdb, false)] 29[InlineData(DebugInformationFormat.Embedded, false)] 30public void AssemblyAndPdb(DebugInformationFormat pdbFormat, bool exactPdbPath) 34var pdbFile = (pdbFormat == DebugInformationFormat.Embedded) ? null : dir.CreateFile("lib.pdb"); 90var peImage = compilation.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb, pdbFilePath: debugDirPdbPath), pdbStream: pdbStream);
Roslyn.Test.PdbUtilities (21)
Reader\PdbValidation.cs (21)
36DebugInformationFormat format = 0, 50DebugInformationFormat format = 0, 66DebugInformationFormat format = 0, 82DebugInformationFormat format = 0, 105DebugInformationFormat format = DebugInformationFormat.Pdb, 117DebugInformationFormat format = DebugInformationFormat.Pdb, 128DebugInformationFormat format, 133Assert.NotEqual(default(DebugInformationFormat), format); 134Assert.NotEqual(DebugInformationFormat.Embedded, format); 155DebugInformationFormat format = 0, 170DebugInformationFormat 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);