客户端调试在VS2017中不起作用 [英] Client-side debugging not working in VS2017

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

问题描述

我前几天安装了VS2017企业版,很高兴发现它支持

Google Chrome中ASP.NET项目的客户端调试
。不幸的是它似乎不起作用。如果我在Javascript文件中设置断点,然后按f5调试Web项目,它会运行Javascript,但永远不会中断。

I installed VS2017 Enterprise the other day, and was pleased to discover that it supports Client-side debugging of ASP.NET projects in Google Chrome. Unfortunately it doesn't seem to work. If I set a breakpoint in a Javascript file, and then hit f5 to debug the web project, it runs the Javascript, but never breaks at all.

我有"启用Javascript调试" for ASP.NET(Chrome和IE)"选中复选框,并试图取消选中它,但它没有任何区别。

I have the "Enable Javascript debugging for ASP.NET (Chrome and IE)" checkbox checked, and ahve tried unchecking it, but it doesn't make any difference.

任何想法?

推荐答案

您好Yossu先生,

Hi Mr Yossu,

如果您以管理员身份运行VS,结果如何?正如您所说的那样,您将断点添加到JavaScript中,如果是这样,请在* .cshtml文件或.js / .ts文件中执行javascript代码

If you run your VS as the admin, how about the result? As you said that you add the breakpoint to the JavaScript, if so,  does the javascript code inside a *.cshtml file or .js/.ts file

它确实有一些限制像这样的情况:

It really has some limitations like this cases:

https:// stackoverflow .com / questions / 42669163 / javascript-breakpoints-in-visual-studio-2017

此外,我们之前讨论过另一个问题:

In addition, we discussed another issue before:

https://social.msdn.microsoft.com/Forums/vstudio/en-US / 5923c80d-b118-4a67-A378-a04ca6c574b8 /为什么-I-着-I-调试-A-第二项目时,IM-已经调试-A-第一?论坛= visualstudiogeneral#5923c80d-b118-4a67-A378 -a04ca6c574b8

请与我们分享最新信息它在上面的主题中,所以我们可以及时跟进它:)

Please also share us the latest information about it in above thread, so we could follow up it in time:)

感谢您的支持和合作。

最诚挚的问候,

杰克


这篇关于客户端调试在VS2017中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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