简体   繁体   English

当js文件的链接以调试器开头时,在Chrome开发工具中是什么意思?

[英]What does it mean in Chrome's dev tools when a js file's link starts with debugger?

I'm trying to diagnose a JavaScript issue in an ASP.Net website that I didn't write. 我试图诊断我未编写的ASP.Net网站中的JavaScript问题。 I've loaded Google Chrome's development tools and run the function that isn't working and am getting an error that says: 我已经加载了Google Chrome浏览器的开发工具,并运行了无法使用的功能,并出现了一条错误消息:

Uncaught TypeError: jQuery.clean is not a function 未捕获的TypeError:jQuery.clean不是函数

When I click on the error in the debugger it is showing me a file which is obviously knockout.js. 当我单击调试器中的错误时,它向我显示了一个文件,该文件显然是kickout.js。 I believe the issue is that we have upgraded jQuery to a new version that no longer contains the .clean function. 我认为问题在于我们已将jQuery升级到不再包含.clean函数的新版本。 This much isn't that interesting just background to my question. 这不是我的问题的背景那么有趣。

I'm trying to figure out where Chrome has got knockout.js from so that I can upgrade it. 我正在尝试找出Chrome从何处获取ickoutout.js,以便可以对其进行升级。 However when I look at the location of the knockout.js file it is telling me it has come from debugger:///VM830 . 但是,当我查看基因敲除文件的位置时,它告诉我它来自debugger:///VM830 That is clearly not part of the site. 那显然不是该网站的一部分。 I have tried right clicking on 'Empty Cache and Hard Reload' but it is still showing as coming from the same place. 我尝试右键单击“空缓存和硬重载”,但它仍然显示为来自同一位置。 My question is what is the debugger:///VM830 location and where might it actually come from? 我的问题是debugger:///VM830位置是什么,它实际上可能来自哪里?

看起来我们的“质量”代码正在将Knockout.js作为XHR请求下载,然后使用eval()执行响应。

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

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