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
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
230
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
170k Jobs a Day on GKE: Scaling Mercari's CI Platform - and What's Next for AI-Native Development
junyaokabe
0
120
レビュー履歴をAIに食わせて、 Compose移行を加速するs
shihochan
0
190
「つくるAI」だけではバグは見つからない ~テストに必要な「見つけるAI」を分離させる戦略~
mfunaki
0
160
実装をデザインガイドラインに追従させるための取り組み / 260731-dip-mosh-design-system
dachi023
0
7.6k
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
460
AWS DevOps AgentのAzure接続機能を検証して見えた活用法/Use Cases Verified for the AWS DevOps Agent's Azure Connectivity Feature
masakiokuda
1
260
AI Readyの正体はデータマネジメントだ メダリオン2.0の最前線
freee
PRO
0
360
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
220
異なる設計思想のフレームワークを経験して得た学び
amekuhideki
1
180
VibeCodingからAgenticWorkflowへ
starfish719
0
770
私のClaude Code活用法 (個人開発編) - PHPerKaigi mini #4(2026/08/24)
panda_program
1
130
React本体のコードリーディング
high_g_engineer
1
150
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
34
9.7k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
420
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
For a Future-Friendly Web
brad_frost
183
10k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
210
Unsuck your backbone
ammeep
672
58k
The Pragmatic Product Professional
lauravandoore
37
7.4k
Visualization
eitanlees
152
17k
Everyday Curiosity
cassininazir
0
290
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
210
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