Tracy panel & Tracy is not defined
- TOMeek
- Member | 64
CZ: Včera to šlo bez problémů, dnes po upgradu to nejde a hlásí tu
tohle chybu. Ani čistý sandbox nejde. Jiné prohlížeče fungují.
EN: Yesterday it was no problem, today after upgrade it isn't working. Other
browsers is normally working. Clean installation nette/sandbox also does not
work. Problem is only in Firefox 30.0
- Eda
- Backer | 220
I have the same issue (FF 30, Ubuntu).
The problem is this code:
(function(onloadOrig) {
window.onload = function() {
if (typeof onloadOrig === 'function') onloadOrig();
var debug = document.body.appendChild(document.createElement('div'));
debug.id = 'tracy-debug';
debug.innerHTML = "...";
for (var i = 0, scripts = debug.getElementsByTagName('script'); i < scripts.length; i++) eval(scripts[i].innerHTML);
Tracy.Dumper.init();
Tracy.Debug.init();
debug.style.display = 'block';
};
})(window.onload);
It does not evaluate the code in innerHTML, so the Tracy is not defined.
If I try to copy this sample code (by hand) to Firebug console and evaluate, it works fine.
I have no idea, why it works fine “by hand” but doesnt work on onLoad… :-(
Maybe this is related with: “Code in eval doesn't work when the Debugger is
activated (regression)”
https://developer.mozilla.org/…ompatibility
Last edited by Eda (2014-06-16 17:04)