Is there something like “Firebug for IE” (for debugging JavaScript)?

后端 未结 16 1283
北海茫月
北海茫月 2020-11-29 02:06

I\'m trying to fix some JavaScript bugs. Firebug makes debugging these issues a lot easier when working in Firefox, but what do you do when the code works fine on Firefox bu

16条回答
  •  旧巷少年郎
    2020-11-29 03:04

    Make a bookmark in the favourites bar, and put this address as the URL:

    javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new%20Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https://getfirebug.com/','#startOpened');
    

    Then navigatge to the page you want and click the link. Firebug Lite will/should open up...

提交回复
热议问题