Is there an easy way to track a javascript variable using firefox?

I am looking for an easy way to track many changed variables in firefox.

I'm looking for something that won't require me to add duplicate code like alert or console.log, but a way to tell firefox to report every time the JS variable changes

I'm dreaming?

+3
source share
3 answers

You can add it to the Watch tab of the Script tab in Firebug. This will always show the current value of the observed element, even if it goes beyond the scope and is equal to zero. Mix this with break points and you can get what you want, I think.

, console.log . , , :

if (debugging) {
    console.log("var test is set at " + test);
}

, , . .

+2

It looks like you are looking for Firebug . Check this.

+1
source

Source: https://habr.com/ru/post/1770602/


All Articles