dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
3.65k stars 416 forks source link

[AzureTools][Aspire] No log output in the "Console logs" window for Worker Service project with a breakpoint if you first click "Continue" and then open the project's "Console logs" window of the dashboard #4820

Open v-mengwe opened 2 months ago

v-mengwe commented 2 months ago

Regression: Not a regression, this issue also reproduces on VS 17.12.0 Preview 1.0 [35108.222.main] with Aspire 8.0.0

Clean machine: Win11 x64 23h2 ENU VS Version: VS 17.12.0 Preview 1.0 [35108.222.main] Aspire Version: 8.1.0-preview.1.24353.12 Apply NuGet Feeds

REPRO STEPS:

  1. Create a new Worker Service project -> Add -> .NET Aspire orchestrator support.
  2. Set a breakpoint in Worker.cs file -> F5. image
  3. The breakpoint is hit, click "Continue" -> Click "Continue" several times.
  4. Click "View" of the project under the "Logs" in the Dashboard.
  5. Check whether there is logging output in the "Console logs" window.

Expect: There is logging output in the "Console logs" window. image

Actual: No log output in the "Console logs" window. image

More Info: There is logging output in the "Console logs" window if you first open the project's "Console logs" window of the dashboard and then click "Continue".

davidfowl commented 1 week ago

Does this still repro?

v-mengwe commented 1 week ago

Yes, this issue still reproduces on the Aspire 9.0.0-preview.4.24456.4. image