[英]Could not debug javascript in visual studio 2013 when IE auto update to 11 from 10
[英]unable to debug javascript in visual studio 2013 and IE 11
這是我的JavaScript文件Yogaspace.js
var input = document.getElementById('location');
var options = {
types: ['(cities)'],
componentRestrictions: { country: "us" }
};
var autocomplete = new google.maps.places.Autocomplete(input, options);
debugger;
var result = autocomplete.getPlace();
這是整個文件,並在視圖底部的index.cshtml文件中像這樣被調用。
@Scripts.Render("~/bundles/js")
並且js是其中包含Yogaspace.js文件的捆綁軟件。 使用了腳本,並且自動完成功能運行良好,但從未觸發過“調試器”處的斷點。 我也嘗試設置一個斷點,但效果不佳。 任何幫助! 我在其他文章中讀到VS在JavaScript調試方面存在一些問題,但它說添加調試器; 將始終有效。
VS 2013,MVC 5,Razar View Engine,IE 11
我必須在BundleConfig.cs文件中將此值設置為false。
BundleTable.EnableOptimizations = false;
現在可以使用斷點進行調試了!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.