Skip to content

fix stack traces from errors in ToAsyncEnumerable - #2302

Merged
idg10 merged 1 commit into
dotnet:mainfrom
adamjones2:fix-stack-traces-in-toasyncenumerable
Feb 17, 2026
Merged

idg10 merged 1 commit into
dotnet:mainfrom
adamjones2:fix-stack-traces-in-toasyncenumerable

Conversation

@adamjones2

Copy link
Copy Markdown
Contributor

Resolves #2301

Now the repro code prints:

System.Exception: test
   at Test.Throw(Int32 x) in Program.cs:line 601
   at System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value)
--- End of stack trace from previous location ---
   at System.Linq.AsyncEnumerable.ObservableAsyncEnumerable`1.MoveNextCore() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/ToAsyncEnumerable.Observable.cs:line 98
   at System.Linq.AsyncIteratorBase`1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 70
   at System.Linq.AsyncIteratorBase`1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 75
   at Program.<Main>$(String[] args) in Program.cs:line 68
   at Program.<Main>$(String[] args) in Program.cs:line 68

@idg10

idg10 commented Feb 17, 2026

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@idg10 idg10 added this to the Ix 7.0.1 milestone Feb 17, 2026
@idg10
idg10 merged commit 1675be2 into dotnet:main Feb 17, 2026
5 checks passed
@idg10

idg10 commented Feb 17, 2026

Copy link
Copy Markdown
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ToAsyncEnumerable hides stack traces of errors

2 participants