« {{activeSlide + 1}} / {{totalSlides}} »
When a man loves a browser...
It's 106ms to the server. I've got a full laptop charge, half a case of Mountain Dew, it's dark, and I'm wearing sunglasses.
Hey Girl... You can have all of my cache
Any application that can be written in JavaScript, will eventually be written in JavaScript.
–Jeff Atwood, in his 2007 blog post:
The Principle of Least Power
JS was invented 17 years ago. During that year:
... But debugging difficulty is related to complexity.
Do you debug your JavaScript by adding code like this?
There's no shame in this... In fact, it resembles:
Developer Tools
FireBug (+ Plugins)
Developer Toolbar
Developer Tools
Dragonfly ** Not covered here in great detail

Source: Adobe SiteCatalyst NetAverages as of March 18, 2012 (sadly discontinued)
The part that you've all been waiting for...
But first a disclaimer:
Accurate as of Early September 2012.
Developer Tools
FireBug (+ Plugins)
Developer Toolbar
Developer Tools
DragonflyStep 1:
Give up your alerts, switch to console.log!
May you never alert() again! Amen.
In any dev-tools tab other than the console,
hit Esc to open a mini-console.
console.log() takes multiple arguments.
Similar to jQuery DOM selection, but without jQuery.
Jump to DOM node in Elements panel from console
⬆ + ⬇ arrow keys scroll through command history
Persist contents after redirect
The console can only interact with one page. If you've got a frameset or iframe to deal with, it can be a pain.
Dropdown
⎚
Change console context:Copy the result of a console command to the clipboard:
Just type in your math problem and get the answer:
image credit
|
Line Breakpoints |
|
Break on JS Errors |
|
Break on DOM change |
|
Break on XHR url match |
Almost Universal Keyboard Shortcuts:
: ⌘/, ⌘', ⌘; respectively
Auto-updating value list for specified variables. Exactly like variable watches in every other step debugger ever.

{ } button
Tools icon > Format JavaScript... because apparently we can't even agree on a standard for tab names.
Select the element to see its dimensions, or use the magnifying glass icon in bottom toolbar
Layout tab or list of computed styles
Pressing * on the numpad expands everything but inline scripts & stylesheets. Add shift to include those.
Button on documents tabAdd, Edit, & Delete HTML & CSS inside the browser
⬆/⬇ change by 1
Shift+⬆/⬇ change by 10
Alt+⬆/⬇ change by 0.1
Shift+PgUp/PgDn change by 100
Also works on colors
Preview focused, hover, active, visited states
|
Clicking color swatches: toggle between hex, short hex, RGB, HSL, named, etc. (Shift+click on Chrome) |
|
Clicking the swatch brings up a color selection dialog |
Lists stylesheets, scripts, images, etc used on the page
Firefox & IE don't have a "Resources" tab but some functionality is implemented in other tabs
Resources tab shows local storage, cookies, caches, etc.
Storage tab does same thing
Panel must be open before page loads to work (just refresh)
Settings cog
Tab menu
Under "cache" in menu bar
Develop Menu > Disable Cache
Can't disable; only clearCtrl+Shift+Del
⌘+Shift+Del
Dialog to clear cache & other data
Settings cog (as of February)
User-Agent Switcher (extension)Displays are all slightly different but all show wait time, download time, etc for each external resource

Often, using the keyboard shortcut to toggle them off & on will fix it
What was the one slide/feature that
Chrome does not have which at least one other browser does?
Expand HTML with * ... Chrome is awesome!

Un-dock dev tools
Increase Dev tools font size: Chrome, FireBug.
Dev Tools of the Dev Tools (undocked)
Slides:
Inspired by: 25 Secrets of the Browser Developer Tools