57 references to Debug
Aspire.Hosting (3)
ApplicationModel\ExecutableLaunchConfiguration.cs (2)
101
/// Defaults to <see cref="ExecutableLaunchMode.
Debug
"/> when a debugger is attached to the app host
107
public string Mode { get; set; } = System.Diagnostics.Debugger.IsAttached ? ExecutableLaunchMode.
Debug
: ExecutableLaunchMode.NoDebug;
Dcp\ExecutableLaunchPolicy.cs (1)
118
?? (Debugger.IsAttached ? ExecutableLaunchMode.
Debug
: ExecutableLaunchMode.NoDebug);
Aspire.Hosting.Blazor.Tests (3)
BlazorHostedExtensionsTests.cs (1)
534
var launchConfiguration = await resource.CreateLaunchConfigurationAsync(ExecutableLaunchMode.
Debug
);
WithBlazorAppTests.cs (2)
353
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfiguration.Mode);
489
var launchConfiguration = await resource.CreateLaunchConfigurationAsync(ExecutableLaunchMode.
Debug
);
Aspire.Hosting.Dotnet.Tests (8)
DotnetProjectBuildCoordinatorTests.cs (5)
927
ExecutableLaunchMode.
Debug
,
1128
ExecutableLaunchMode.
Debug
,
1190
ExecutableLaunchMode.
Debug
,
1505
ExecutableLaunchMode.
Debug
,
1621
ExecutableLaunchMode.
Debug
,
DotnetProjectResourceTests.cs (3)
583
ExecutableLaunchMode.
Debug
);
587
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
622
ExecutableLaunchMode.
Debug
);
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
520
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)
1431
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)
4389
[InlineData("Debug", ExecutableLaunchMode.
Debug
)]
4449
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
4705
builder.Configuration[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
;
4731
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
4747
Assert.Equal(ExecutableLaunchMode.
Debug
, launchContext.Mode);
4807
Assert.Equal(ExecutableLaunchMode.
Debug
, config1.Mode);
6503
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
6566
builder.Configuration[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
;
6574
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
6616
Assert.Equal(ExecutableLaunchMode.
Debug
, projectLaunchConfiguration.GetProperty("mode").GetString());
6623
Assert.Equal(ExecutableLaunchMode.
Debug
, mauiLaunchConfiguration.GetProperty("mode").GetString());
6630
Assert.Equal(ExecutableLaunchMode.
Debug
, launchContext.Mode);
6701
builder.Configuration[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
;
6709
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
7495
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
7511
Assert.Equal(ExecutableLaunchMode.
Debug
, plc.Mode);
7536
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
7552
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
8890
[InlineData(ExecutableLaunchMode.
Debug
, ExecutableLaunchMode.
Debug
)]
9833
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)
104
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.
Debug
));
106
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfiguration.Mode);
125
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.
Debug
));
190
var launchConfiguration = Assert.IsType<TestGoLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
192
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfiguration.Mode);
210
await CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
, cts.Token);
295
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
311
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
323
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
467
string mode = ExecutableLaunchMode.
Debug
,
Aspire.Hosting.TestUtilities (1)
Utils\LaunchConfigurationTestHelpers.cs (1)
12
string mode = ExecutableLaunchMode.
Debug
,