3 ms·
Nooooo. I use both and Firebug is so much better :( :( :( For example Firebug outputs the entire nested array, while the dev tools just say "Array[len]" for n
by ars 10y ago
Nooooo.
I use both and Firebug is so much better :( :( :(
For example Firebug outputs the entire nested array, while the dev tools just say "Array[len]" for nested arrays (or objects).
The problem with that is if you are debugging and something changes the values inside that array (after you output it) you have no record of the old values, since clicking on the Array[len] shows you the new values, not the old ones.
In general that's my biggest problem with the Dev Tools - it likes to reuse windows, and make you click on things for more info. So if you click on Network and want to see the response from two requests at once you can't - both show their info in the same window, and overwrite each other.
In firebug in contrast you click + and it simply expands, inline, and you can see both at once.
I don't suppose anyone knows a setting I can change to fix that and make Dev Tools more usable?
- abritinthebay 10y agoit's a bit hacky but you can solve that with: console.log(JSON.parse(JSON.stringify(myArrToDebug))); It fully clones the array (impossible to have odd refs hang around).
- aindhaden 10y agoUse console.dir(var) for a moment-in-time snapshot. The side panel you get when you click on a var is a debug view, which is a lot more useful as a "live" value watcher.