看起来它是隐藏的,但是添加 browser.console.showInPanel 和 devtools.errorconsole.enabled 然后在 about:config 中将两者都设置为“true”将启用控制台和首选项面板以进行 JavaScript 调试。
这里是如何找到错误控制台图标:
似乎不推荐使用错误控制台,因此书签是remaining mobile debugging alternatives 中最简单的:
javascript:(function(){if((/android/gi).test(navigator.appVersion)){console={"_log":[],"log":function(){var%20arr=[];for (var%20i=0;i%20\""+value+"\"");}},"show":function(){alert(this._log.join("\n"));this._log =[];}};window.onerror=function(msg,url,line){console.log("ERROR:%20\""+msg+"\"%20at%20\""+"\",% 20line%20"+line);}window.addEventListener("touchstart",function(e){if(e.touches.length===3){console.show();}});}})() ;
javascript:(函数(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');