67 references to Debug
Aspire.Hosting (4)
ApplicationModel\DebugSupportExtensions.cs (1)
104
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)
94
?? (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 (13)
DotnetProjectBuildCoordinatorTests.cs (7)
341
ExecutableLaunchMode.
Debug
)));
1577
LaunchConfigurationTestHelpers.CreateCallbackContext(project.Resource, ExecutableLaunchMode.
Debug
)));
2549
ExecutableLaunchMode.
Debug
,
2755
ExecutableLaunchMode.
Debug
,
2817
ExecutableLaunchMode.
Debug
,
3139
ExecutableLaunchMode.
Debug
,
3260
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)
653
ExecutableLaunchMode.
Debug
);
657
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
692
ExecutableLaunchMode.
Debug
);
Aspire.Hosting.Go.Tests (4)
AddGoAppTests.cs (4)
569
[InlineData(ExecutableLaunchMode.
Debug
, true, true)]
570
[InlineData(ExecutableLaunchMode.
Debug
, false, false)]
619
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfiguration.GetProperty("mode").GetString());
645
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 (34)
Dcp\DcpExecutorTests.cs (22)
5742
[InlineData("Debug", ExecutableLaunchMode.
Debug
)]
5802
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
6058
builder.Configuration[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
;
6084
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
6100
Assert.Equal(ExecutableLaunchMode.
Debug
, launchContext.Mode);
6160
Assert.Equal(ExecutableLaunchMode.
Debug
, config1.Mode);
8207
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
8270
builder.Configuration[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
;
8278
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
8320
Assert.Equal(ExecutableLaunchMode.
Debug
, projectLaunchConfiguration.GetProperty("mode").GetString());
8327
Assert.Equal(ExecutableLaunchMode.
Debug
, mauiLaunchConfiguration.GetProperty("mode").GetString());
8334
Assert.Equal(ExecutableLaunchMode.
Debug
, launchContext.Mode);
8405
builder.Configuration[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
;
8413
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
9298
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
9314
Assert.Equal(ExecutableLaunchMode.
Debug
, plc.Mode);
9339
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
9355
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
9472
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
10772
[InlineData(ExecutableLaunchMode.
Debug
, ExecutableLaunchMode.
Debug
)]
12865
Assert.Equal(ExecutableLaunchMode.
Debug
, config.Mode);
Dcp\ExecutableLaunchPlanTests.cs (2)
407
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
416
Assert.Equal(ExecutableLaunchMode.
Debug
, decision.ProjectLaunchMode);
DebugSupportExtensionsTests.cs (10)
105
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.
Debug
));
107
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfiguration.Mode);
128
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.
Debug
));
197
var launchConfiguration = Assert.IsType<TestGoLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
199
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfiguration.Mode);
217
await CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
, cts.Token);
302
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
318
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
330
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
595
string mode = ExecutableLaunchMode.
Debug
,
Aspire.Hosting.TestUtilities (1)
Utils\LaunchConfigurationTestHelpers.cs (1)
12
string mode = ExecutableLaunchMode.
Debug
,