简体   繁体   English

Javascript:在使用IE进行调试时,“源代码不适用于此位置”msg

[英]Javascript: “Source Code is not available for this location” msg while debugging with IE

I am trying to debug some issue using IE 8 developer tools. 我试图使用IE 8开发人员工具调试一些问题。

However after running the below code, the debugger throws error "Source Code not available for this location" 但是在运行以下代码之后,调试器会抛出错误“源代码不适用于此位置”

 window.onload = function() {
  tabberAutomatic(tabberArgs);
};

What does it mean ? 这是什么意思 ?

Above code is part of below code which basically runs the function tabberAutomatic once the document has finished loading: 上面的代码是下面代码的一部分,它基本上在文档加载完成后运行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);
    };
  }

I am trying to debug issue explained in my previous question browser showing progress bar as still progressing even when the page is loaded 我正在尝试调试在我之前的问题浏览器中解释的问题, 显示进度条即使在页面加载时仍在进行中

Thanks for inputs!! 谢谢你的投入!!

Are you looking at the right file in the debugger? 你在调试器中查看正确的文件吗?

Have you tried this, it explains alot: http://msdn.microsoft.com/en-us/library/dd565625(v=vs.85).aspx 你试过这个,它解释了很多: http//msdn.microsoft.com/en-us/library/dd565625( v = vs。85).aspx

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

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