如何在VS2017中禁用新的调试窗口 [英] How to disable the new debug window in VS2017

查看:281
本文介绍了如何在VS2017中禁用新的调试窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2017 RC,对单击调试"时弹出的新Chrome窗口感到非常沮丧.

I'm using Visual Studio 2017 RC and getting very frustrated with the new Chrome window that pops up when you click Debug.

关于调试Chrome窗口"的问题:

Issues with the Debug Chrome Window:

  • 花很多时间才能启动/附加"网站(我认为它会附加我不需要的所有JavaScript调试程序,因为无论如何我都使用Chrome DevTools)
  • 不可与其他Chrome窗口固定(作为标签页)
  • 不记得表单历史记录.如果我要测试表格,则无法自动完成表格数据,因此每次都必须输入全部内容
  • 不记得网址历史记录.如果要测试网站上的特定页面,则无法从Chrome网址栏下拉菜单中快速选择网址.必须完整输入网址
  • 扩展名未启用,因此我无法使用标尺或颜色选择器扩展名
  • 调试停止时,Chrome窗口关闭,因此我必须打开一个新窗口以继续浏览本地站点

有人知道如何禁用此新的调试样式窗口,然后回到VS 2015中的状态吗?

Does anyone know how to disable this new Debug style window and go back to how it was in VS 2015?

推荐答案

这不是问题,而是VS 2017中的新功能.以前,我们只能在VS的调试模式下使用IE调试JS和TypeScript.但是现在他们引入了使用Chrome的远程调试功能在VS中调试JS和TS的功能.如果您以调试模式运行应用程序(按F5),并且选择了Chrome浏览器,则Visual Studio 2017将尝试在专用端口上使用Chrome打开远程调试会话.通过远程调试,

This is not an issue, rather a new feature in VS 2017. Previously we could only debug JS and TypeScript using IE in debug mode (of VS). But now they have introduced debugging JS and TS inside VS using Remote Debugging feature of Chrome. If you are running your application in debug mode (pressing F5) and Chrome is selected browser, Visual studio 2017 will try to open a remote debugging session with Chrome on a dedicated port. With remote debugging,

  1. 浏览器以纯模式启动,即没有扩展名和历史记录等.远程调试不适用于已经在运行的现有Chrome实例.

  1. The browser is launched in plain mode, i.e. no extension and no history etc. Remote debuggin doesnt work with an existing instance of Chrome already running.

您总是会在一段时间内看到此窗口.此时,VS正在尝试将远程调试器附加到VS

You always see this window for a while. At this point, VS is trying to attach the remote debugger to VS

  1. 要返回VS 2015调试体验,请将调试目标从Chrome更改为IIS Express.

本文详细介绍了此功能.

This post describes this feature in detail. https://blogs.msdn.microsoft.com/webdev/2016/11/21/client-side-debugging-of-asp-net-projects-in-google-chrome/

一种快速的解决方法是按F5并启动调试 会话,而忘了新打开的Chrome窗口.去你的 普通的Chrome实例,只需在新标签页中打开您的网站即可.你会 仍然能够调试和执行所有操作,因为IIS Express将 仍在该端口上运行您的应用.

A kind of quick work around is to press F5 and launch the debug session and forget about the newly opened Chrome window. Go to your normal Chrome instance and just open your site in new tab. You will still be able to debug and do everything because IIS Express will still be running your app at that port.

更新: @Steveadoo在下面给出的答案是正确的前进方向.他的屏幕快照中显示的选项控制了如何启动chrome进行调试.如果您要坚持使用常规的Chrome实例,请取消选中它.

Update: The answer given below by @Steveadoo is the right way going forward. The option shown in his screenshot controls how chrome is launched for debugging. Uncheck it if you want to stick to your regular Chrome instance.

希望这会有所帮助.

这篇关于如何在VS2017中禁用新的调试窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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