18 references to SupportsDebugging
Aspire.Hosting (3)
ApplicationModel\DebugSupportExtensions.cs (1)
122/// a debugger. Use <see cref="SupportsDebugging"/> to test for that.
Dcp\ExecutableLaunchPolicy.cs (1)
27var supportsDebugging = resource.SupportsDebugging(_configuration, out var debugSupport);
SupportsDebuggingAnnotation.cs (1)
16/// <see cref="DebugSupportExtensions.SupportsDebugging"/> to test for that.
Aspire.Hosting.Blazor (2)
BrowserDebuggerHelper.cs (2)
147if (!debuggerResource.SupportsDebugging(builder.Configuration, out _)) 220return debuggerResource.SupportsDebugging(builder.Configuration, out _)
Aspire.Hosting.Dotnet (2)
DotnetProjectHostingExtensions.cs (2)
136if (ctx.Resource.SupportsDebugging(builder.Configuration, out var debugAnnotation) 190|| (resource.SupportsDebugging(builder.Configuration, out var debugAnnotation)
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1360&& builder.Resource.SupportsDebugging(builder.ApplicationBuilder.Configuration, out _);
Aspire.Hosting.Tests (10)
DebugSupportExtensionsTests.cs (10)
332Assert.False(executable.Resource.SupportsDebugging(CreateConfiguration(), out var annotation)); 343Assert.False(executable.Resource.SupportsDebugging(CreateConfiguration(debugSessionPort: null), out _)); 354Assert.True(project.Resource.SupportsDebugging(CreateConfiguration(), out var annotation)); 367Assert.False(executable.Resource.SupportsDebugging(CreateConfiguration(), out _)); 383Assert.Equal(expected, executable.Resource.SupportsDebugging(configuration, out _)); 397Assert.False(project.Resource.SupportsDebugging(configuration, out _)); 407Assert.False(project.Resource.SupportsDebugging(CreateConfiguration(), out _)); 417Assert.False(project.Resource.SupportsDebugging(CreateConfiguration(), out _)); 432Assert.True(project.Resource.SupportsDebugging(configuration, out _)); 433Assert.False(executable.Resource.SupportsDebugging(configuration, out _));