Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Chrome DevTools tips and tricks
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Damian Nicholson
July 06, 2017
Programming
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Chrome DevTools tips and tricks
Damian Nicholson
July 06, 2017
More Decks by Damian Nicholson
See All by Damian Nicholson
Designing form validation the right way
damian
0
330
Making Sure Your Forms Don't Suck
damian
0
220
Writing testable, scalable, maintainable rock-solid JavaScript
damian
5
1.6k
Ten Things You Should Know About Jasmine
damian
2
1.1k
Other Decks in Programming
See All in Programming
PHP に部分適用が来るぞ!……ところで何それ?おいしいの? #phpcon / phpcon-2026
shogogg
0
640
ここ半年くらいでAIに作らせたR用ツール
eitsupi
0
380
ITヒヤリハットを整理してみた ~ライフサイクルと原因から考える再発防止策~
koukimiura
1
140
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
250
170k Jobs a Day on GKE: Scaling Mercari's CI Platform - and What's Next for AI-Native Development
junyaokabe
0
110
運用ダッシュボードの設計を誰も教えてくれないのだけどみなさんどうしてるんですか? - チームに監視するという文化を根付かせるための第一歩を踏みたい -
satoshi256kbyte
1
110
<title><a id="</title>君はこのHTMLをパースできるか"></a></title> #雑LT_study
pizzacat83
0
140
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
210
yield再入門 #phpcon
o0h
PRO
0
1k
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
140
テーブルをDELETEした
yuzneri
0
140
生成AIで帳票OCRが「簡単に」作れる時代になった?
kon_shou
0
800
Featured
See All Featured
BBQ
matthewcrist
89
10k
Writing Fast Ruby
sferik
630
63k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2.1k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
400
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.3k
How to Talk to Developers About Accessibility
jct
2
510
Java REST API Framework Comparison - PWX 2021
mraible
34
9.6k
4 Signs Your Business is Dying
shpigford
187
22k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
390
Transcript
Chrome DevTools @damian
right click + inspect = show DevTools command + option
+ i = toggle DevTools command + option + j = toggle DevTools with Console focussed command + shift + c = toggle DevTools in Inspect Element mode escape = toggle console Opening DevTools
Reload Click and hold refresh icon
Console convenice methods $(‘selector’) = document.querySelector('selector'); $$(‘selector’) = document.querySelectorAll('selector');
Console magic variables $0 - 4 $_ = reference to
last expression
Console copy(variable) = copy to clipboard inspect(element) = open element
in Elements panel
console.log(as, many, args, can, go, here, as, you, like); console.log('%cChrome
dev tools', 'background: red;'); console.log('%cChrome dev tools', 'background: red; font-size: 50px;'); console.log
console.log(‘Today is %s %ith’, ‘July’, 6); Format specifiers Specifier Output
%s String %i or %d Integer %f Float %o Expandable DOM element %O Expandable JavaScript object %c Applies CSS rules
console.assert(expression, “A failed assertion message”); console.dir(element) === console.log('%o', element); console
methods
console.count(label); console.count(string)
function Person(firstName, lastName, age) { this.firstName = firstName; this.lastName =
lastName; this.age = age; } var family = {}; family.mother = new Person("Susan", "Doyle", 32); family.father = new Person("John", "Doyle", 33); family.daughter = new Person("Lily", "Doyle", 5); family.son = new Person("Mike", "Doyle", 8); console.table(family, ['firstName']); console API reference console.table(array | object)
shift + click to toggle between hex, rgb and hsl
shift + click style rule to see CSS in Source panel shift + up to increment a unit by 10 alt + up to increment a unit by 0.1 CSS tips - Styles panel
command + shift + m = toggle device mode Mobile
device testing
blue = maximum width green = range beige = minimum
width Media queries
Landed in Chrome 59!!! Full page screenshots
Network throttling CPU throttling Mobile device testing - Performance panel
method:GET status-code: 200 -method:OPTIONS -.png block network request(Chrome 59) Network
panel
The end