Skip to content

Remove PortablePdbReader except trace cleanup #19957

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

Merged
merged 2 commits into from
Mar 23, 2020
Merged

Remove PortablePdbReader except trace cleanup #19957

merged 2 commits into from
Mar 23, 2020

Conversation

RozzaysRed
Copy link
Contributor

Summary of the changes (Less than 80 chars)

  • Removes PortablePdbReader except the Dispose method so it should clean up the stack trace

Addresses #19441

@mkArtakMSFT mkArtakMSFT added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Mar 18, 2020
@mkArtakMSFT
Copy link
Contributor

Thanks for the PR, @RozzaysRed.
@pranavkm can you please look into this? Thanks!

@mkArtakMSFT
Copy link
Contributor

Actually, the related issue is area-middleware so feel free to update this too, @pranavkm.

@mkArtakMSFT mkArtakMSFT added this to the 5.0.0-preview4 milestone Mar 18, 2020
@davidfowl
Copy link
Member

Does this affect the error page in any way?

@pranavkm
Copy link
Contributor

@davidfowl likely not - we added this type because .NET Fx was unable to natively read portable pdbs. https://github.com/dotnet/aspnetcore/blob/master/src/Mvc/test/Mvc.FunctionalTests/ErrorPageTests.cs has some tests that should cover end-to-end scenarios to an extent.

@davidfowl
Copy link
Member

@pranavkm Kewl.

@RozzaysRed can you show a screenshot of the DeveloperExceptionPage after this change?

@RozzaysRed
Copy link
Contributor Author

@davidfowl sure as soon I figure out how to get this page, I will take the requested screenshot. I'm assuming its a dummy project and enabling that middleware? Pardon me for asking but just want to make sure I get you exactly what you are looking for.

@pranavkm
Copy link
Contributor

@RozzaysRed you can run the https://github.com/dotnet/aspnetcore/blob/master/src/Mvc/samples/MvcSandbox and include screenshots for the result when an exception is thrown from

  • a controller
  • a Razor Page \ view

The sample is already set up to include the developer error page middleware

@RozzaysRed
Copy link
Contributor Author

image

@pranavkm
Copy link
Contributor

Would you mind including screenshot of an exception thrown from inside a view? We've had issues with it in the past, so it would be good to confirm that looks correct.

Copy link
Contributor

@pranavkm pranavkm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@RozzaysRed
Copy link
Contributor Author

@pranavkm sorry about that, I thought I had pasted the file that had both. Here is the view:
image

@pranavkm
Copy link
Contributor

Thanks!

Copy link
Contributor

@pranavkm pranavkm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants