使用Chrome进行调试显示“还原页面?”每次弹出 [英] Debugging with Chrome shows "Restore pages?" pop-up every time
问题描述
如果我在Google Chrome中调试我的ASP.NET Core应用时按停止调试按钮,它将关闭Kestrel进程窗口和在启动调试时自动打开的Chrome窗口。这非常方便!
不幸的是,Visual Studio以这种方式关闭Chrome会让Chrome感到困惑,并认为它已经崩溃。因此,每次在Visual Studio中启动调试时,都会打开一个新的Chrome窗口,然后看到这个恼人的弹出窗口:
.stack.imgur.com / xudon.pngrel =nofollow noreferrer> / issues / 163#issuecomment-282365723rel =nofollow noreferrer>这里,但是它代表VS Code 而不是VS2017。我不认为 launch.json
是VS2017中的一个概念,因此我不知道如何实现该解决方法。 <我怎样才能防止这种情况发生?
编辑文件:
%UserProfile%\AppData\Local\Google\Chrome \用户数据\默认\首选项
更改:
exit_type:崩溃
到
exit_type :正常
然后关闭所有打开的Chrome窗口
If I press the stop debugging button while debugging my ASP.NET Core app in Google Chrome it closes the Kestrel process window and the Chrome window that opens automatically on launching Debug. This is great and convenient!
Unfortunately it seems like Visual Studio closing Chrome in this way confuses Chrome and makes it think it has crashed. So every time I launch debugging in Visual Studio, a new Chrome window opens, and I see this annoying pop-up:
I found a similar issue brought up here, but it is for VS Code instead of VS2017. I don't think launch.json
is a concept in VS2017 so I have no idea how to implement that workaround.
How can I prevent this from happening? Thanks!
Edit file: "%UserProfile%\AppData\Local\Google\Chrome\User Data\Default\Preferences"
Change: "exit_type": "Crashed" to "exit_type": "normal"
and then close all open Chrome windows
这篇关于使用Chrome进行调试显示“还原页面?”每次弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!