Tracy panel & Tracy is not defined

5 years ago

TOMeek
Member | 64
+
+1
-

Hi,
I updated my Firefox to new version (30.0) but Tracy debug panel is now broken because:

ReferenceError: Tracy is not defined
var Query = Tracy.Query = function(selector) {
...

How repair it?

5 years ago

Šaman
Member | 2296
+
0
-

CZ: Určitě to dělá ten FF30.0? Mě na něm jedou bez problémů jak projekty na 2.0.x, tak na 2.2.1, teď jsem to zkoušel.

EN: It's work on my localhost.

5 years ago

TOMeek
Member | 64
+
0
-

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

5 years ago

TOMeek
Member | 64
+
0
-

So, problem solved. I had to remove and newly installed Firebug.

5 years ago

cubic
Member | 48
+
0
-

I have the same issue with FF 30.0. I have tried to reinstall Firebug 2.0 but still got the same error message. All Tracy source files are up to date.

5 years ago

Eda
Member | 212
+
0
-

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)

5 years ago

Milo
Nette Core | 1147
+
0
-

I hit the same problem with FF30. It is definetly compatibility issue as @Eda mentioned. When I disable (not only close) Firebug, Tracy panel works properly.