![](/img/trans.png)
[英]VS2008 javascript debugger IE8 “there is no source code available for the current location”
[英]Javascript: “Source Code is not available for this location” msg while debugging with IE
我试图使用IE 8开发人员工具调试一些问题。
但是在运行以下代码之后,调试器会抛出错误“源代码不适用于此位置”
window.onload = function() {
tabberAutomatic(tabberArgs);
};
这是什么意思 ?
上面的代码是下面代码的一部分,它基本上在文档加载完成后运行tabberAutomatic函数:
/* This function adds tabberAutomatic to the window.onload event,
so it will run after the document has finished loading.
*/
var oldOnLoad;
if (!tabberArgs) { tabberArgs = {}; }
/* Taken from: http://simon.incutio.com/archive/2004/05/26/addLoadEvent */
oldOnLoad = window.onload;
if (typeof window.onload != 'function') {
window.onload = function() {
tabberAutomatic(tabberArgs);
};
} else {
window.onload = function() {
oldOnLoad();
tabberAutomatic(tabberArgs);
};
}
我正在尝试调试在我之前的问题浏览器中解释的问题, 显示进度条即使在页面加载时仍在进行中
谢谢你的投入!!
你在调试器中查看正确的文件吗?
你试过这个,它解释了很多: http : //msdn.microsoft.com/en-us/library/dd565625( v = vs。85).aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.