当我打开Chrome开发人员工具时,Visual Studio Community 2017停止调试 [英] Visual Studio Community 2017 stops debugging when I open chrome developer tool

查看:110
本文介绍了当我打开Chrome开发人员工具时,Visual Studio Community 2017停止调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用apache cordova应用程序.我进行了两种不同的调试,首先是在localbrowser(chrome)上,然后在实际的设备上.在chrome中调试时,我在VS中设置了断点,所有命中.然后,当在Chrome上打开开发人员控制台时,它将停止调试器.我发誓这从来没有发生过.有什么建议?我发现一些帖子几乎与我的问题有关,但始终无法解决.

I am working on an apache cordova app. I do two different debugging, first is on my localbrowser(chrome) and then on an actual device. When debugging in chrome, I set break points inside VS and all are hit. Then when on chrome when I open the developer console, it stops the debugger. I swear that this never happen before. Any suggestions? I found some post that are almost related to my problem but it never solves them.

起初,我认为调试器由于Visual Studio中的选项设置而停止运行,但是我启动了一个新的blank(apache项目)项目,并且该项目可以运行.然后,我将js,html,css文件和设置添加到了这个新的空白项目中.一切顺利,当我打开chrome开发人员工具时,调试器就会停止.我没主意了.请帮忙.

At first I thought the debugger stops because of my option settings in Visual studio, but I started a new blank(apache project) project and it works. Then I added my js, html, css files and settings to this new blank project. And there it goes, the debugger stops when I open chrome developer tool. I ran out of ideas. Please help.

推荐答案

在chrome V 63之前,它不允许进行多个远程调试会话.打开chrome调试工具将接管唯一可用的连接,并终止VS保留的连接.

Prior to V 63 of chrome, it would not allow multiple remote debugging sessions. Opening the chrome debug tools would take over the only available connection, and terminate the one held by VS.

但是现在铬团队已经纠正了这个问题!

However this has now been rectified by the chromimum team !

不幸的是,当按F12键时,Visual Studio调试会话仍会终止的问题.

Unfortunately there is still a problem with the Visual Studio debugging session getting terminated when F12 is hit.

有一个解决方法,希望VS团队可以更正潜在的问题.请参阅

There is a workaround, and hopefully the VS team will correct the underlying issue. See my post on MSDN for full details

这篇关于当我打开Chrome开发人员工具时,Visual Studio Community 2017停止调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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