58 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)
137
?? (Debugger.IsAttached ? ExecutableLaunchMode.
Debug
: ExecutableLaunchMode.NoDebug);
Aspire.Hosting.Blazor.Tests (3)
BlazorHostedExtensionsTests.cs (1)
553
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 (9)
DotnetProjectBuildCoordinatorTests.cs (5)
1458
ExecutableLaunchMode.
Debug
,
1659
ExecutableLaunchMode.
Debug
,
1721
ExecutableLaunchMode.
Debug
,
2036
ExecutableLaunchMode.
Debug
,
2152
ExecutableLaunchMode.
Debug
,
DotnetProjectOptionsTests.cs (1)
34
var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(resource.Resource, ExecutableLaunchMode.
Debug
);
DotnetProjectResourceTests.cs (3)
647
ExecutableLaunchMode.
Debug
);
651
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
686
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)
5002
[InlineData("Debug", ExecutableLaunchMode.
Debug
)]
5062
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
5318
builder.Configuration[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
;
5344
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
5360
Assert.Equal(ExecutableLaunchMode.
Debug
, launchContext.Mode);
5420
Assert.Equal(ExecutableLaunchMode.
Debug
, config1.Mode);
7116
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
7179
builder.Configuration[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
;
7187
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
7229
Assert.Equal(ExecutableLaunchMode.
Debug
, projectLaunchConfiguration.GetProperty("mode").GetString());
7236
Assert.Equal(ExecutableLaunchMode.
Debug
, mauiLaunchConfiguration.GetProperty("mode").GetString());
7243
Assert.Equal(ExecutableLaunchMode.
Debug
, launchContext.Mode);
7314
builder.Configuration[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
;
7322
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
8166
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
8182
Assert.Equal(ExecutableLaunchMode.
Debug
, plc.Mode);
8207
[KnownConfigNames.DebugSessionRunMode] = ExecutableLaunchMode.
Debug
8223
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfig.Mode);
9561
[InlineData(ExecutableLaunchMode.
Debug
, ExecutableLaunchMode.
Debug
)]
10984
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)
105
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.
Debug
));
107
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfiguration.Mode);
126
var launchConfiguration = Assert.IsType<ProjectLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(project.Resource, ExecutableLaunchMode.
Debug
));
191
var launchConfiguration = Assert.IsType<TestGoLaunchConfiguration>(await CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
193
Assert.Equal(ExecutableLaunchMode.
Debug
, launchConfiguration.Mode);
211
await CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
, cts.Token);
296
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
312
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
324
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => CreateLaunchConfigurationForTestAsync(executable.Resource, ExecutableLaunchMode.
Debug
));
500
string mode = ExecutableLaunchMode.
Debug
,
Aspire.Hosting.TestUtilities (1)
Utils\LaunchConfigurationTestHelpers.cs (1)
12
string mode = ExecutableLaunchMode.
Debug
,