Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve exception stack trace in Session.WaitOnHandle() #698

Closed
wants to merge 1 commit into from

Conversation

bretthysuik
Copy link

Throwing _exception loses the original stack trace, making it difficult to debug problems.
Original stack trace is now saved in the exception data for .NET 3.5 and 4.0 clients, or
correctly rethrown with the full stack for .NET Standard 1.3 and 2.0 clients.

src/Renci.SshNet/Session.cs Outdated Show resolved Hide resolved
Throwing _exception loses the original stack trace, making it difficult to debug problems.
Original stack trace is now saved in the exception data for .NET 3.5 and 4.0 clients, or
correctly rethrown with the full stack for .NET Standard 1.3 and 2.0 clients using
ExceptionDispatchInfo.
@WojciechNagorski
Copy link
Collaborator

PR needs refreshing. If you feel this change is needed, feel free to open the current PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants