简体   繁体   English

Visual Studio 2017无法调试Javascript

[英]Visual-Studio-2017 can not Debug Javascript

I have a problem with my VisualStudio 2017 . 我的VisualStudio 2017有问题。 I can't debug my javascript code. 我无法调试我的JavaScript代码。 First there was that problem that my breakpoints will not be hit: the breakpoint will not currently be hit. 首先存在一个问题,即我的断点不会被击中: the breakpoint will not currently be hit.

Now I got another problem here is a screenshot of the Error Message: ErrorMessage 现在我遇到另一个问题,这里是错误消息的屏幕截图: ErrorMessage

Currently I am Using VS2017 , asp.net , angular.js , IIS , Chrome(also tried with IE Edge and Firefox). 目前我正在使用VS2017asp.netangular.jsIIS ,Chrome(也尝试了IE Edge和Firefox)。

Not that this will solve your problem, but I normally use Chrome Developer Tools for debugging javascript. 并不是说这可以解决您的问题,但是我通常使用Chrome开发者工具来调试javascript。

https://developers.google.com/web/tools/chrome-devtools/javascript/ https://developers.google.com/web/tools/chrome-devtools/javascript/

if you wnat to use Visual studio to Debug JS i think you HAVE TO USE INTERNET EXPLORER 如果您拥有使用Visual Studio调试JS的权限,我认为您必须HAVE TO USE INTERNET EXPLORER

Another way is to use Visual studio Code with integrated debugger (https://code.visualstudio.com/docs/nodejs/angular-tutorial) 另一种方法是将Visual studio Code与集成调试器一起使用(https://code.visualstudio.com/docs/nodejs/angular-tutorial)

or (the way i use) use the Chrome Developer Tools 或(我的使用方式)使用Chrome Developer Tools

https://developers.google.com/web/tools/chrome-devtools/javascript/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM