Blazor WebAssembly Visual Studio调试器问题 [英] Blazor WebAssembly Visual Studio Debugger Issues

查看:308
本文介绍了Blazor WebAssembly Visual Studio调试器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个干净的Blazor PWA项目.尝试用调试器运行它的时间不到一半,它无法正常启动.一半的时间实际上是一种改善!

I've created a clean Blazor PWA project. Less than half the time when I try to run it with the debugger it doesn't launch properly. Half the time would actually be an improvement!

如果尝试使用调试器启动(F5或Debug/Start Debugging),则会打开一个新的浏览器窗口,其中带有"about:blank".作为URL.大约一分钟后,"localhost:xxxx"显示为URL .....但正在加载..."消息没有出现.

If try to launch with the debugger (F5 or Debug/Start Debugging), a new browser window is opened with "about:blank" as the URL. After maybe a minute "localhost:xxxx" shows as the URL.....but the "Loading..." message does not appear.

如果我在没有调试器的情况下运行(Ctrl + F5或没有调试的Debug/Start),则PWA会像预期的那样启动.我可以在浏览器中进行调试,但是它不如我可以使用Visual Studio时进行的平滑.

If I run without the debugger (Ctrl+F5 or Debug/Start Without Debugging), the PWA launches like it should. I can debug in the browser, but it isn't as smooth as when I can use Visual Studio.

尝试使用IIS Express和Project....Chrome,Edge,Edge Dev.

Have tried using IIS Express and Project....Chrome, Edge, Edge Dev.

使用Visual Studio v16.7.2.用干净的项目复制了几次.

Am using Visual Studio v16.7.2. Have reproduced a few times with clean projects.

推荐答案

我不完全了解PWA,但是使用调试器启动Web应用程序时,标准Blazor WebAssembly存在相同的问题.就我而言,什么是用Ctrl + Shift + I打开浏览器控制台,这似乎可以启动应用程序.

I don´t know exactly about PWAs, but I have the same problem with the standard Blazor WebAssembly when launching the web app with the debugger. What helps in my case is opening the browser console with Ctrl + Shift + I, this seems to kickstart the application.

这篇关于Blazor WebAssembly Visual Studio调试器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆