Chrome Developer Tools: Back to Basics
blog.chromium.org
blog.chromium.org
It's odd that Mozilla hasn't officially adopted Firebug as part of Firefox. While Firebug continues to improve, and the Firebug team does a great job, with Google is focusing on this area I suppose at some point I will prefer the Chrome inspector. Why is Firebug still a plugin?
On the darker side of web development, IE's development tools are typically lacking. Does anyone know whether they have been improved in IE 9?
Editing CSS in Chrome is still more cumbersome, but otherwise I think it's pretty great, especially the timeline and network views.
Firebug and the Chrome developer tools beat them easily, but they have improved.
They're typically Google: great on a technical level, with a somewhat sketchy UI.
One tip: to add a new item to a style click the whitespace area to the right of '{ '.
They come mostly from the Webkit project itself actually. I'm sure Chrome contributes, but the main driver is Webkit (thus probably Apple)
The former is a nice detail on Saf's part but not really important, the latter is a real pain in Chrome as I'm mostly using Safari/Webkit for my development.
It starts with a nested trees of network resources (Frames > Pages > HTML, CSS, JavaScript and Images, note that in the case of e.g. CSS files if you have performed editions via the Elements tab they will be trees as well listing all previous revisions of the file), then lists the databases, local storage, session storage, cookies and application cache for the page.
Networks holds most of the old "Resources" tab, it is a detailed view of the network transactions (HTTP and WebSocket request/responses) performed on the current page since it was opened.
Is it something that the console is doing or is it some sort of feature of jQuery?
I'm not exactly sure what defines it, I think it's devtools (or firebug) itself, but it's a function that returns a dom element with id of first argument.
Very annoying, although truth be told, $ and _ should have never been used in js libraries: those names were reserved for internal use in javascript.
"This standard specifies one departure from the grammar given in the Unicode standard: The dollar sign ($) and the underscore (_) are permitted anywhere in an identifier. The dollar sign is intended for use only in mechanically generated code."
It was removed (or I can't find it) in 5th edition. Also, I can't find a reference for underscore.
You delivered! Thank you for the effort.
This what that section says - "The dollar sign ($) and the underscore (_) are permitted anywhere in an identifier. The dollar sign is intended for use only in mechanically generated code."
This seems contradictory. Do they mean to say that $ (only $, not $x) is intended for use in mechanically generated code? Doesn't that make variables $0 [and so on] actually valid? And if not, then doesn't that makes $0 an invalid variable. Finally, why don't javascript interpreters throw an error when you try to name a variable $? Is there a reason they're ALL (v8, nitro, spidermonkey) lax to the ecma standard?
All a little confusing, but trivial enough to ignore, I suppose...
[Also, this somewhat validates my choice of using underscore.js + mixins for my code. sweet.]
I believe in both tools, at a breakpoint, $ will be the getElementById shortcut that's baked into the console API. Kind of a bummer, we're trying to work around this.
You can always do `$ = jQuery;` to redefine it and you'll be good.
(it was actually fixed two weeks back. phew!)
Edit I see it in beta, nice. Still would like a json viewer though.