On Github siirila / devTools_talk
Weight loss not guaranteed
drop
elements
drag
and
to
rearrange
Oh no! Are your elements in the wrong order? Drag and Drop!When editing almost any string containing a number in the Elements panel, the arrow keys can be used to increment/decrement the value
This works in suprising places, such as on Hex values
Hold the shift key to increment/decrement by 10 with the arrow keys
Hold the alt key to increment/decrement by .1 with the arrow keys
When using the color picker, if you move the mouse over the page a magnifying glass will appear that allows you to pick a specific pixel’s color
Shift+click on a color in the sidebar to switch between color formats (rgb, hex, hsl)
Jenny is standing by to take your call
Navigate the DOM in the Elements panel using arrow keys
Can also be done using the Search for file by name dialog by putting a : at the start
Useful to inspect elements that are hidden when the mouse moves out of them
Clears the console output
Useful to clear the log before the section of code being worked on so you don't have to search through the consoleThrows an error and stack trace if the expression passed into it is false
Very useful in troubleshooting code issues that don't generate an error by defaultLogs the # of times that count has been invoked at that line with that label.
Star Wars Star Trek Dr. Who Allows for powerful logging of loops and other low level occurrances.Starts and stop a JavaScript CPU profile if the DevTools are open
End ProfileStarts and stops a timer for the specified label. When stopped, the time elapsed is displayed in the console.
End TimerNot in the console object
These only exists inside the console!
Aliases for document.querySelector() and document.querySelectorAll() respectively.
Copies whatever element is passsed into it to the clipboard
copy($("#copy-to-clipboard")[0])When the specified function is called, a message is logged with the method name and arguments to the method.
When one of the specified events occurs on the object, log the event object to the console.
Keeps the log between full page navigation. An option exists for this in both the Network panel and the Console
Right click on any XHR request in the Network panel to have the option to replay that request
When debugging code, rerun the code in the any frame in the Call Stack by right clicking the frame and selecting to Restart Frame
Set breakpoint in navigateRight at line 3620Attaches a Grep method to the Object prototype
Add jQuery to a page that doesn't have it
Find leaked globals
https://github.com/paulirish/devtools-addons/wiki/Snippets
Many different filters such as larger-than and domain
Chrome will autocomplete the filters applicable to your data, so play around
The DevTools themselves are a web app that can be edited by opening DevTools on them if they are undocked!