Skip to content

[Blazor/WASM] Unable to enumerate over IEnumerable in the Watch Window  #49442

@RobertBouillon

Description

@RobertBouillon

Describe the bug

You cannot view the results of an IEnumerable in the watch window.

To Reproduce

  1. Create a new Blazor / WASM project in VS 2019
  2. Add a new class called Bar using the code below
  3. Update FetchData.razor using the code below.
  4. Add a breakpoint after the foo variable is initialized
  5. Add foo to the watch window
  6. Expand the foo variable in the watch window
  7. Expand the Sequence property (It's IEnumerable<int>)

Expected Results

An option will appear in the watch window called "Results View" that will execute the enumerable and display the results

Actual Results

No option exists to view the contents of the IEnumerable property.

WASM Output

image

.NET Core Output

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions