23
0

Chrome DevTools

Embed Size (px)

DESCRIPTION

Basic tips and tricks Using the Console API Network timeline Mobile emulation Terminal on DevTools

Citation preview

Page 1: Chrome DevTools

0

Page 2: Chrome DevTools

ChromeDevTools

by Juan Obando

Page 3: Chrome DevTools

Our staff

Page 4: Chrome DevTools

About meJuan ObandoSoftware Engineerfrom Universidaddel Valle

Page 5: Chrome DevTools

ExperiencePHP, RubyMySQL, PostgreSQLGitHTML, CSS, JavaScriptServer administration: Linux &Windows

Page 6: Chrome DevTools

Interests

Page 7: Chrome DevTools

AgendaBasic tips and tricksUsing the Console APINetwork timelineMobile emulationTerminal on DevTools

Page 8: Chrome DevTools

Basic tips andtricks

Page 9: Chrome DevTools

Use Chrome Canary!

Page 10: Chrome DevTools

Useful SettingsDisable cacheLog XMLHttpRequestsColor format as authoredEnable DevTools experiments: #enable-devtools-experiments

Page 11: Chrome DevTools

Ctrl (⌘ for Mac) + Shift + C to inspectDrag and drop elementsForce element state“Break on...” and breaking points

Page 12: Chrome DevTools

Using theConsole API

Page 13: Chrome DevTools

Writing to the console console.log("Nothing new so far! :@");

Warning and Errors console.warn("This might be new!");console.error("and maybe, this one too");

Grouping output console.group("Just reminding some tips about console");console.log("Nothing new so far! :@");console.warn("This might be new!");console.error("and maybe, this one too");console.groupEnd();

Page 14: Chrome DevTools

String substitution and formatting console.log("%s %i of times!", "Nothing new! Have seen this", 1000);

Styling console output with CSS console.log("%cStylish output", "color: #ff0000; font-size: 16px;");

Listing all element properties console.dir(document.body);

Page 15: Chrome DevTools

Measuring how long something takes console.time("Measuring");// your code hereconsole.timeEnd("Measuring");

Page 16: Chrome DevTools

Network timeline

Page 17: Chrome DevTools

Size/Content columnTime/Lantency columnInitiator columnHAR format: HTTP Archive Format

Page 18: Chrome DevTools

Mobile emulation

Page 19: Chrome DevTools

Terminal onDevTools

Page 20: Chrome DevTools

1. Install chrome extension2. Install 3. Install devtools-terminal package

4. Run devtools-terminal tool

Devtools Terminalnode.js

npm install -g devtools-terminal

Page 21: Chrome DevTools

Questions?

Page 22: Chrome DevTools

Thank you!

Page 23: Chrome DevTools