-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
DevTools not working #17476
Comments
Hi @AndreaLabeljoy can you open the Dev Tools manually by clicking anywhere in the WebView and pressing F12? |
Hi @Eilon, yes I can! BTW on Mac I couldn't get it to work, even by using the Chrome shortcut Option + ⌘ + J. |
Hi @AndreaLabeljoy , yeah, the setting merely enables the dev tools, it doesn't open them automatically. For example, you probably want dev tools enabled while working on your app in Debug mode, but not when you publish your Release mode app to an app store (I mean, you could, but it's quite unusual!). To enable browser dev tools on Mac, check out the Blazor Hybrid docs here: https://learn.microsoft.com/aspnet/core/blazor/hybrid/developer-tools?view=aspnetcore-7.0&pivots=macos, but ignore the Blazor-specific settings such as calling |
Hi @Eilon, thank you for the detailed explanation. As I'm able to see the devtools in Windows, my problems are basically solved. As far as Mac goes, still no luck.
Nothing shows when pressing F12, nor when trying with the Chrome shortcut Option + ⌘ + J. |
Hi again, a little update. I was able to inspect using the Safari devtools, by following the instructions found in this post. All I had to do was adding this, no Entitlements file implemented in my case:
|
On macOS the WebView is based on Safari, so I think you have to use Safari's Dev Tools for it. It's up to each platform's WebView whether they have a way to auto-open the Dev Tools. I know on Windows it does, but I'm not sure about elsewhere. For example, on Android and iOS it's unlikely to have that functionality because the DevTools run on the host OS and not within the emulator/simulator/device. I'm glad you got it working! |
Description
HI all and thank you for this great resource.
I've been suing it for a few days now but I cannot get it to show the DevTools Window,
Even the demo on VS 2022 on Win 11 does not work.
If I use a standard WebView I'm able to get it to show the DevTools window using this approach:
Am I missing something?
BTW, my MAUI test project works fine even under Mac.
Thank you.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
7.0.92
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
7.0.92
Affected platforms
Windows
Affected platform versions
All platoforms
Did you find any workaround?
Relevant log output
The text was updated successfully, but these errors were encountered: