About me – Juan Obando – Software Engineer from Universidad del Valle



About me – Juan Obando – Software Engineer from Universidad del Valle

1 0


chrome-devtools-slides

Chrome DevTools slides for inQbation KSR.

On Github juanchopx2 / chrome-devtools-slides

Chrome DevTools

by Juan Obando

Our staff

About me

https://github.com/juanchopx2/chrome-devtools-slides.git

Juan Obando

Software Engineer from Universidad del Valle

Experience

  • PHP, Ruby

  • MySQL, PostgreSQL

  • Git

  • HTML, CSS, JavaScript

  • Server administration: Linux & Windows

Interests

https://github.com/juanchopx2/chrome-devtools-slides.git

Agenda

Basic tips and tricks

Use Chrome Canary!

Useful Settings

  • Ctrl (⌘ for Mac) + Shift + C to inspect

  • Drag and drop elements

  • Force element state

  • “Break on...” and breaking points

Using the Console API

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();
            

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);
            

Measuring how long something takes

              console.time("Measuring");
// your code here
console.timeEnd("Measuring");
            

Network timeline

  • Size/Content column

  • Time/Lantency column

  • Initiator column

  • HAR format: HTTP Archive Format

Mobile emulation

Terminal on DevTools

Install Devtools Terminal chrome extension Install node.js Install devtools-terminal package
                  npm install -g devtools-terminal
                
Run devtools-terminal tool

Questions?

Thank you!

0