键入时禁用 Web 请求 url

Disable Web Requests while typing url

我正在 visual studio 中调试 Web 应用程序 运行,在对我的 Web 应用程序的每个请求运行的某些代码上设置了一些断点。

我发现在 chrome 中,当我在主机后面输入 url 时,它会触发对我输入的所有内容的请求...就像 chrome预取页面以使其加载速度更快。

虽然很适合浏览网页,但在调试代码时却非常烦人..

任何人都知道禁用方法,我用谷歌搜索了几种不同的方法以及我可以关闭的方法,但它仍然会在我键入时发出请求。

隐私设置下(Settings -> show advanced settings... -> Privacy)在Chrome (Version 46.0.2490.80 m)取消勾选这两个设置:

  • 使用预测服务帮助完成搜索并URLs输入 地址栏或 app launcher 搜索框
  • 预取资源以更快地加载页面

Settings -> Security and Privacy -> Cookies and other site data 下(或在地址栏中输入 chrome://settings/cookies?search=Security+and+Privacy 并按“Enter”键),取消选中以下内容:

Preload pages for faster browsing and searching

Preloads pages that Chrome thinks you might visit. To do this, Chrome may use cookies, if you allow cookies, and may encrypt and send pages through Google to hide your identity from sites.

此外(禁用“预测服务”),在 Settings -> You and Google -> Sync and Google services 下(或在地址栏中输入 chrome://settings/syncSetup?search=autocomplete 和按“Enter”键),取消选中下面的(ref):

Autocomplete searches and URLs

Sends some cookies and searches from the address bar and search box to your default search engine.