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 Dev Tools
Search
Frontend NE
July 06, 2017
Technology
540
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Chrome Dev Tools
Frontend NE
July 06, 2017
Transcript
18 slides
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
More Decks by Frontend NE
See All by Frontend NE
Standardizing 'select': What the future holds for HTML - Stephanie Stimac @ FrontendNE
frontendne
4
510
CSS Regression testing - James A Lambert @ FrontendNE
frontendne
1
410
Building a design system for Lloyds Banking - Lilly Dart @ FrontendNE
frontendne
0
1.7k
What I learnt about hiring diverse teams from conducting a fully-anonymous recruitment process - Bethan Vicent
frontendne
0
370
Web Design that Doesn't Make Trans People Uncomfortable - Jessica Kelsall
frontendne
0
830
Contain yourself - Docker for developers
frontendne
2
340
Design process of a website
frontendne
0
410
What the JAMstack?
frontendne
1
1.1k
Talking the talk
frontendne
0
600
Other Decks in Technology
See All in Technology
サーバーラックは作る時代! 3Dプリンターで作る10インチラックのススメ
jacopen
2
480
Terraform 0 to 100:100個以上のリポジトリを常に最新にし続けるための自動化
sue445
2
940
市販IoT機器や自作IoT機器とHomeAssistantを駆使して家の電気代をできる限り見える化する方法の考案
harutiro
0
390
設計手法を「道具」として使いこなすために
a_suenami
6
1.4k
AWS Client VPNの設定でハマったポイントとその過程での気づき
amarelo_n24
1
410
ぼくのClaude Codeの使い方
falken
PRO
5
7.6k
IoTのデータ保存をSREの観点で考える
grimoh
1
110
gem install とrequire のむこうがわ
ydah
0
240
WasmをRustにする技術
sansantech
PRO
1
130
統制されたID・権限をどう利用するか : DPoP/FAPIによるAPIセキュリティ強化
oidfj
1
220
変更差分を読むために環境を整備しよう
pipepasta
1
480
gradle-best-practices 使ってみた
mikanichinose
0
180
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Ethics towards AI in product and experience design
skipperchong
2
470
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Statistics for Hackers
jakevdp
799
230k
Building an army of robots
kneath
307
47k
Designing Powerful Visuals for Engaging Learning
tmiket
1
660
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
620
Become a Pro
speakerdeck
PRO
31
6.4k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k