VS2015:断点不起作用 Firefox/chrome/Edge
VS2015: breakpoint not worked Firefox/chrome/Edge
在使用 Firefox(, chrome, Edge) 简单 JavaScript 进行调试时,断点(设置第 9 行 var a = 4;
)似乎不起作用。这是规格吗?
代码
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<meta charset="utf-8" />
<title>Hello JavaScript</title>
<script>
var a = 4;
var b = 2;
window.alert(a+b);
</script>
</head>
<body>
body content!
</body>
</html>
环境
- 微软 Visual Studio 专业版 2015
- 版本 14.0.25431.01 更新 3
- Microsoft .NET 框架版本 4.6.01055
- 已安装 Version:Professional
- ASP.NET 和网络工具 2015.1 14.1.21111.0
- ASP.NET Web 框架和工具 2012.2 4.1.41102.0
- ASP.NET Web 框架和工具 2013 5.2.40314.0
- 浏览器
- IE 11.0.9600.18638
- Firefox 52.0.2(32 位)
- Google Chrome 57.0.2987.133
测试结果
旧的 Visual Studio 调试器允许在浏览器中调试后端 .NET 代码和客户端 JavaScript 运行,但旧的 VS 版本仅支持 IE 浏览器喜欢 VS2015.
如果你真的想得到这个功能,我建议你使用VS2017。
您可以从 Visual Studio.
中调试 Chrome 中的 JavaScript 运行
在使用 Firefox(, chrome, Edge) 简单 JavaScript 进行调试时,断点(设置第 9 行 var a = 4;
)似乎不起作用。这是规格吗?
代码
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<meta charset="utf-8" />
<title>Hello JavaScript</title>
<script>
var a = 4;
var b = 2;
window.alert(a+b);
</script>
</head>
<body>
body content!
</body>
</html>
环境
- 微软 Visual Studio 专业版 2015
- 版本 14.0.25431.01 更新 3
- Microsoft .NET 框架版本 4.6.01055
- 已安装 Version:Professional
- ASP.NET 和网络工具 2015.1 14.1.21111.0
- ASP.NET Web 框架和工具 2012.2 4.1.41102.0
- ASP.NET Web 框架和工具 2013 5.2.40314.0
- 浏览器
- IE 11.0.9600.18638
- Firefox 52.0.2(32 位)
- Google Chrome 57.0.2987.133
测试结果
旧的 Visual Studio 调试器允许在浏览器中调试后端 .NET 代码和客户端 JavaScript 运行,但旧的 VS 版本仅支持 IE 浏览器喜欢 VS2015.
如果你真的想得到这个功能,我建议你使用VS2017。
您可以从 Visual Studio.
中调试 Chrome 中的 JavaScript 运行