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

[Bug] Read Blazor Webview unhandled exceptions on iOS/Android #2057

Closed
blazorin opened this issue Aug 11, 2021 · 6 comments
Closed

[Bug] Read Blazor Webview unhandled exceptions on iOS/Android #2057

blazorin opened this issue Aug 11, 2021 · 6 comments
Assignees
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView area-docs Conceptual docs, API docs, Samples t/docs 📝 Task neither bug nor feature but something that needs to be done in support of either

Comments

@blazorin
Copy link

I have some errors inside my Blazor application that end up with a Blazor unhandled exception.
I'm running my Maui Blazor project on iOS 14.5 Xcode 13.0 and can't find any way neither in the debug window I can get to read those messages.

Is there any way to read them or something I can do with the ILogger service?

@blazorin blazorin changed the title [Bug] Read Blazor Webview errors on iOS/Android [Bug] Read Blazor Webview unhandled exceptions on iOS/Android Aug 11, 2021
@Eilon Eilon added the area-blazor Blazor Hybrid / Desktop, BlazorWebView label Aug 12, 2021
@blazorin
Copy link
Author

any update on this?

@jsuarezruiz jsuarezruiz added the t/bug Something isn't working label Oct 22, 2021
@hartez hartez added the fatal label Jan 5, 2022
@mkArtakMSFT
Copy link
Member

Thank you for filing this issue. In order for us to investigate this issue, please provide a minimalistic repro project (ideally a GitHub repo) that illustrates the problem.

@TanayParikh TanayParikh added the s/needs-info Issue needs more info from the author label Jan 14, 2022
@TanayParikh
Copy link
Contributor

Hello @3dsx, just wondering if you're still running into this issue. If so, could you kindly provide a minimal, public, github repository which reproduces this issue.

@TanayParikh
Copy link
Contributor

TanayParikh commented Jan 27, 2022

Hey @3dsx, thanks for pointing this out. Great news, it's already possible to access the debug window to read the messages:

image

iOS

Steps:

  1. Open Safari (MacOS app not in simulator)
  2. Preferences > Advanced > Show Develop menu in menu bar
  3. Run your Blazor dotnet MAUI app webview in the simulator
  4. Go back to desktop Safari, Develop > Simulator > 0.0.0.0. If multiple 0.0.0.0 are shown select the one that highlights the webview (makes blue)
  5. Web inspector pops up for the iOS simulator webview. Visit the Console tab to see the messages.

image

Android

Steps:

  1. Start emulator and navigate to your Blazor dotnet MAUI app webview
  2. Open Edge / Chrome
  3. Go to chrome://inspect/#devices, you should see
    image
  4. Select inspect to pop open DevTools. Visit the Console tab to see the messages.

@guardrex could we please get this documented somewhere? I feel like this may be a common issue and don't know if this GitHub issue will offer enough discoverability.

@TanayParikh TanayParikh added t/docs 📝 area-docs Conceptual docs, API docs, Samples and removed t/bug Something isn't working s/needs-info Issue needs more info from the author fatal labels Jan 27, 2022
@javiercn
Copy link
Member

javiercn commented Feb 1, 2022

@TanayParikh I've captured more details from this issue in #4441 as there are several issues around exceptions that are overlapping with each other.

@TanayParikh
Copy link
Contributor

Thanks @javiercn, I'm going to close this issue out in favor of #4441.

@mkArtakMSFT mkArtakMSFT added this to the 6.0.300-preview.14 milestone Mar 24, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Apr 23, 2022
@samhouts samhouts added the Task neither bug nor feature but something that needs to be done in support of either label Jul 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView area-docs Conceptual docs, API docs, Samples t/docs 📝 Task neither bug nor feature but something that needs to be done in support of either
Projects
None yet
Development

No branches or pull requests

8 participants