dotnet / dotnet/vscode-csharp

Calling Native function within a custom list class' GetEnumerator breaks results view

Open
#5,421 1 comment 0 reactions 0 assignees View on GitHub
Debugger OmniSharp Triaged
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

## Environment data
1. Windows 10: NET6, NET7
2. VS Community 2022 (latest)
3. VSCode (latest)
4. Omnisharp 1.25, 1.25.1beta

## OmniSharp log
Debug log within zip

## Steps to reproduce
Use VSCode project within zip and simply breakpoint past the list variable in Main as shown in the jpg.

## Expected behavior
Debugger variable results view of class correctly expands instead of failing

## Actual behavior
Debugger variable results view fails to enumerate custom list class' items

## Additional context
My usage scenario would be to call native functions within the GetEnumerator method. The zip project reproduces the issue with a bare minimum example.

Tested with all combinations in the environmental data. Basically the exact same failure was observed across all configurations.

[native_enumr.zip](https://github.com/OmniSharp/omnisharp-vscode/files/9860304/native_enumr.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.