Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[WebToolsE2E][Aspire] No debugger display attributes were added to the Relationships collection type. #7041

Closed
v-reinawang opened this issue Jan 8, 2025 · 3 comments

Comments

@v-reinawang
Copy link

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install Dev17.13 Preview 2.1 [include sdk 9.0.200-preview.0.24575.35]
  3. Install Aspire 9.1.0-preview.1.25057.1
  4. Install Docker desktop [4.37.1]

REPRO STEPS

  1. Create a new project > .NET Aspire Starter App > ,NET 9.0 > Check 'Use Redis for caching' > Create
  2. Open Program.cs of AppHost project, add following code:
var builder = DistributedApplication.CreateBuilder(args);

var other = builder.AddExecutable("other", "cmd.exe", ".");

var redis = builder.AddRedis("redis")
    .WithDataVolume()
    .WithBindMount("c:\\temp", "/mnt/tmp")
    .WithRelationship(other.Resource, "Relationship Type");

builder.Eventing.Subscribe<ResourceReadyEvent>(redis.Resource, (evt, ct) =>
{
    var _ = Task.Run(async () =>
    {
        await foreach (var resourceEvent in evt.Services.GetRequiredService<ResourceNotificationService>().WatchAsync(ct))
        {
            if (resourceEvent.Resource.Name == "redis")
            {
                // Set Breakpoint Here
            }
        }
    }, ct);

    return Task.CompletedTask;
});

builder.Build().Run();
  1. Set a breakpoint as shown:
    Image

  2. Build and Debug

  3. Open Locals Windows > resourceEvent > Snapshot > Relationships

ACTUAL
No debugger display attributes were added to the Relationships collection type
Image

EXPECTED
Add debugger display attributes to the Relationships collection type
Image

@v-reinawang
Copy link
Author

According to #7012, I found this issue, so I opened this issue to confirm whether it is necessary to add debug display attributes to the Relationships collection type.

@afscrome
Copy link
Contributor

afscrome commented Jan 8, 2025

See #7012 (comment) .

@v-reinawang
Copy link
Author

By design.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants