0

The IEnumerable Visualizer magnifying glass isn't available when you debug an ASP.NET Core WebAPI project using Docker Tools.

It is availble when you run the project without Docker Tools.

Steps to reproduce:

  1. Open Visual Studio and Create New Project.

  2. Use the "ASP.NET Core Web Api" template.

  3. Select "Enable Docker" in wizard:

enter image description here

  1. Switch Launch dropdown to "WebApplication1" and change the 'Get' method to allow debugging:

enter image description here

        var array = Enumerable.Range(1, 5).Select(index => new WeatherForecast
        {
            Date = DateTime.Now.AddDays(index),
            TemperatureC = Random.Shared.Next(-20, 55),
            Summary = Summaries[Random.Shared.Next(Summaries.Length)]
        })
        .ToArray();
        return array;
  1. Run the project and execute the Get method with Swagger:

Note Visualizer magnifying glass is available on 'array' variable in 'Locals' window

enter image description here

  1. Switch the Launch dropdown to 'Docker':

enter image description here

  1. Re-run project and execute the method again:

(Note Visualizer magnifying glass is not present)

enter image description here

samneric
  • 3,038
  • 2
  • 28
  • 31

1 Answers1

0

It turns out this may not be a feature that currently works using Docker Tools.

I started creating this issue on github:

https://github.com/microsoft/DockerTools/issues/352

It was recommended I create a feedback ticket which I did here:

https://developercommunity.visualstudio.com/t/IEnumerable-Visualizer-not-available-usi/10120848?port=1025&fsid=5e1a6015-f60c-45c7-bbd9-5d17710c8927&entry=problem

samneric
  • 3,038
  • 2
  • 28
  • 31