65 references to Debug
Aspire.Hosting (4)
ApplicationModel\DebugSupportExtensions.cs (1)
57
configuration[KnownConfigNames.DebugSessionRunMode] != ExecutableLaunchMode.
Debug
))
ApplicationModel\ExecutableLaunchConfiguration.cs (2)
102
/// Defaults to <see cref="ExecutableLaunchMode.
Debug
"/> when a debugger is attached to the app host
108
public string Mode { get; set; } = System.Diagnostics.Debugger.IsAttached ? ExecutableLaunchMode.
Debug
: ExecutableLaunchMode.NoDebug;
Dcp\ExecutableLaunchPolicy.cs (1)
137
?? (Debugger.IsAttached ? ExecutableLaunchMode.
Debug
: ExecutableLaunchMode.NoDebug);
Aspire.Hosting.Blazor.Tests (3)
BlazorHostedExtensionsTests.cs (1)
588
var launchConfiguration = await resource.CreateLaunchConfigurationAsync(ExecutableLaunchMode.
Debug
);
WithBlazorAppTests.cs (2)
354
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfiguration.Mode);
490
var launchConfiguration = await resource.CreateLaunchConfigurationAsync(ExecutableLaunchMode.
Debug
);
Aspire.Hosting.Dotnet.Tests (12)
DotnetProjectBuildCoordinatorTests.cs (6)
333
ExecutableLaunchMode.
Debug
)));
2440
ExecutableLaunchMode.
Debug
,
2646
ExecutableLaunchMode.
Debug
,
2708
ExecutableLaunchMode.
Debug
,
3030
ExecutableLaunchMode.
Debug
,
3151
ExecutableLaunchMode.
Debug
,
DotnetProjectLaunchProfileTests.cs (2)
42
LaunchConfigurationTestHelpers.CreateCallbackContext(resource.Resource, ExecutableLaunchMode.
Debug
)));
90
LaunchConfigurationTestHelpers.CreateCallbackContext(resource.Resource, ExecutableLaunchMode.
Debug
)));
DotnetProjectOptionsTests.cs (1)
34
var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(resource.Resource, ExecutableLaunchMode.
Debug
);
DotnetProjectResourceTests.cs (3)
654
ExecutableLaunchMode.
Debug
);
658
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
693
ExecutableLaunchMode.
Debug
);
Aspire.Hosting.Go.Tests (4)
AddGoAppTests.cs (4)
570
[InlineData(ExecutableLaunchMode.
Debug
, true, true)]
571
[InlineData(ExecutableLaunchMode.
Debug
, false, false)]
620
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfiguration.GetProperty("mode").GetString());
646
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
Aspire.Hosting.Java.Tests (1)
AddJavaAppTests.cs (1)
1360
ExecutableLaunchMode.
Debug
,
Aspire.Hosting.Maui.Tests (1)
MauiPlatformExtensionsTests.cs (1)
1430
ExecutableLaunchMode.
Debug
);
Aspire.Hosting.Rust.Tests (6)
RustPublicApiTests.cs (6)
370
ExecutableLaunchMode.
Debug
,
377
ExecutableLaunchMode.
Debug
,
441
ExecutableLaunchMode.
Debug
,
445
ExecutableLaunchMode.
Debug
,
480
ExecutableLaunchMode.
Debug
,
484
ExecutableLaunchMode.
Debug
,
Aspire.Hosting.Tests (33)
Dcp\DcpExecutorTests.cs (21)
5607
[InlineData("Debug", ExecutableLaunchMode.
Debug
)]
5667
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
5923
builder.Configuration[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
;
5949
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
5965
Assert.Equal(ExecutableLaunchMode.
Debug
, launchContext.Mode);
6025
Assert.Equal(ExecutableLaunchMode.
Debug
, config1.Mode);
7800
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
7863
builder.Configuration[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
;
7871
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
7913
Assert.Equal(ExecutableLaunchMode.
Debug
, projectLaunchConfiguration.GetProperty("mode").GetString());
7920
Assert.Equal(ExecutableLaunchMode.
Debug
, mauiLaunchConfiguration.GetProperty("mode").GetString());
7927
Assert.Equal(ExecutableLaunchMode.
Debug
, launchContext.Mode);
7998
builder.Configuration[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
;
8006
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
8850
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
8866
Assert.Equal(ExecutableLaunchMode.
Debug
, plc.Mode);
8891
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
8907
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
10245
[InlineData(ExecutableLaunchMode.
Debug
, ExecutableLaunchMode.
Debug
)]
11699
Assert.Equal(ExecutableLaunchMode.
Debug
, config.Mode);
Dcp\ExecutableLaunchPlanTests.cs (2)
190
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
199
Assert.Equal(ExecutableLaunchMode.
Debug
, decision.ProjectLaunchMode);
DebugSupportExtensionsTests.cs (10)
106
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.
Debug
));
108
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfiguration.Mode);
129
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.
Debug
));
198
var launchConfiguration = Assert.IsType<TestGoLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
200
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfiguration.Mode);
218
await CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
, cts.Token);
303
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
319
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
331
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
521
string mode = ExecutableLaunchMode.
Debug
,
Aspire.Hosting.TestUtilities (1)
Utils\LaunchConfigurationTestHelpers.cs (1)
12
string mode = ExecutableLaunchMode.
Debug
,