简体   繁体   English

JavaScript可在调试器中使用,但无法发布到IIS

[英]JavaScript working in debugger but not when published to IIS

I have a few scripts that work fine running in the debugger, but when I publish it to IIS it's like they aren't running. 我有一些可以在调试器中正常运行的脚本,但是当我将其发布到IIS时,好像它们没有运行。

Here are the lines i'm using to include the scripts inside the head tags 这是我用来在head标签内包含脚本的行

<script src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js"></script>
<script src="<%=ResolveClientUrl("~/Scripts/")%>ScrollSpy.js"></script>

scripts are contained in Scripts folder 脚本包含在“脚本”文件夹中

Correct me if I'm wrong but it sounds like you can't debug Javascript in VS? 如果我错了,请纠正我,但听起来您无法在VS中调试Javascript? If so, have you considered using browser based debugging tools? 如果是这样,您是否考虑过使用基于浏览器的调试工具? Chrome, Firefox, and IE 11 have pretty great debugging tools that allow you to set breakpoints just like in Visual Studio. Chrome,Firefox和IE 11具有非常出色的调试工具,使您可以像在Visual Studio中一样设置断点。

There's a free course online that'll teach Google Chrome's DevTools at Codeschool - http://discover-devtools.codeschool.com/ 在线上有一个免费课程,可以在Codeschool教授Google Chrome的DevTools- http ://discover-devtools.codeschool.com/

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

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