Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
一人だけ、Kiroが静止する日
hideg
0
140
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
400
速習iPhone Duo対応
yuukiw00w
2
910
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
650
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
110
海上で動くGoサーバー: goroutineとchannelでさばく航行データストリーム
atsuki_seo
0
1k
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
460
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
450
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
180
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
1
1.2k
そのリトライ、死んだコネクションを使い回していませんか ── GoのHTTPクライアントとHTTP/2を実プロダクト障害から学び直す
myus4a
0
350
モデルのリファクタリングが難しいと思ったら、そもそも複雑だったのはビジネス仕様だった ? / is-the-business-domain-the-real-complexity
hatsu38
0
430
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
100
6.3k
Writing Fast Ruby
sferik
630
63k
Un-Boring Meetings
codingconduct
0
440
The Mindset for Success: Future Career Progression
greggifford
PRO
0
520
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
Documentation Writing (for coders)
carmenintech
77
5.6k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6.3k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
530
HDC tutorial
michielstock
2
930
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