Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Guia do F12: Chrome Developer Tools

986 views

Published on

Dicas de produtividade para desenvolvimento web utilizando as ferramentas do Google Chrome.

Published in: Technology
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Guia do F12: Chrome Developer Tools

  1. 1. Guia do f12 Developer Tools F12 Leonardo Tegon
  2. 2. Desenvolver Visualizar e  editar o HTML, CSS e JavaScript Gerenciar os dados locais (Cookies, Local Storage) Simular dispositivos mobile
  3. 3. Debugar Smartphone com Android JavaScript snippets Código minificado  Breakpoints Console
  4. 4. Analisar Performance Tempo de carregamento Uso de CPU  Uso de memória
  5. 5. Painéis
  6. 6. Elements Visualização e alteração do layout da página e manipulação do DOM (Document Object Model) em tempo real.
  7. 7. Network Análise de todas as requisições feitas pela página:  tempo tamanho headers cookies parâmetros
  8. 8. Sources Visualizar e alterar os arquivos (HTML, CSS, JS) da página. Possui também um debugger.
  9. 9. Timeline Exibe as operações que o navegador executou durante um determinado período de tempo. Pode ser útil para melhorar o desempenho da página.
  10. 10. Resources Permite a visualização de todos os arquivos utilizados pela página e o gerenciamento dos dados locais (Cookies, Local Storage, IndexedDB).
  11. 11. Profiles Similar ao painel Timeline, porém com mais detalhes, como uso de memória e CPU.
  12. 12. Console Contém toda a saída de log da aplicação, e também funciona como um REPL. Possui autocomplete para nomes de funções e variáveis.
  13. 13. Comandos
  14. 14. $_ Retorna a última expressão executada no Console.
  15. 15. $0 - $4 Histórico dos últimos elementos selecionados no painel  Elements ou no painel  Profiles
  16. 16. $(seletor) Retorna o primeiro elemento correspondente ao seletor CSS informado 
  17. 17. $$(seletor) Retorna um array com os elementos correspondentes ao seletor CSS informado 
  18. 18. $x(path) Retorna um array com os elementos correspondentes a expressão informada  XPath
  19. 19. clear() Limpa o histórico do Console copy(objeto) Copia o objeto em formato de texto para a área de transferência debug(função) Quando a função informada for executada, o  debugger será aberto no painel  Sources, similar a um breakpoint. Use  undebug(função) para parar de debugar.
  20. 20. dir(elemento) Exibe o elemento em forma de objeto, listando todas as suas propriedades
  21. 21. getEventListeners(elemento) Retorna as funções que estão escutando eventos no elemento
  22. 22. keys(objeto) Retorna um array com os nomes das propriedades do objeto
  23. 23. values(objeto) Retorna um array com os valores das propriedades do objeto
  24. 24. monitor(função) Quando a função informada for executada, uma mensagem será exibida no Console com o nome dela e os valores de seus argumentos. Use unmonitor(função) para parar de monitorar.
  25. 25. monitorEvents(el[,eventos]) Exibe uma mensagem no Console quando ocorrerem os eventos. Use unmonitorEvents(el[,eventos]) para parar de monitorar.
  26. 26. profile(nome)/profileEnd(nome) Executa uma análise de uso de CPU e ao completar, a mesma fica no painel Profiles
  27. 27. table(objetos[,cabeçalhos]) Exibe os objetos no  Console em formato de tabela.  Cabeçalhos podem ser informados para as colunas.
  28. 28. Debugar smartphone com Android
  29. 29. Requisitos Chrome 32+ Cabo USB Android 4.0+
  30. 30. Requisitos A versão do Chrome do Desktop deve ser mais recente que a do Chrome do Android
  31. 31. Requisitos A partir da versão 4.2 do Android, as opções do desenvolvedor estão escondidas por padrão
  32. 32. Requisitos Caso ainda não tenha, instale os do seu Android em sua máquina drivers
  33. 33. Ative modo Desenvolvedor Em configurações, selecione "Sobre o telefone" e clique sobre "Número da versão"  sete vezes 
  34. 34. Configure o Android Em seu Android, vá até configurações e selecione "Programador" (em algumas versões será "Opções do Desenvolvedor").
  35. 35. Configure o Android Nas opções do desenvolvedor, ative a "Depuração USB". Clique em OK
  36. 36. Conecte o Android Com o Android conectado na sua máquina com um cabo USB, abra uma aba do Chrome com a url:   e marque o checkbox "Discover USB devices" chrome://inspect
  37. 37. Conecte o Android No Android, permita a depuração via USB clicando em OK. Marque o checkbox caso deseje sempre permitir a depuração para seu computador.  
  38. 38. Selecione uma página Em  , selecione uma página - que está aberta no Chrome do Android - e clique em inspect chrome://inspect/#devices
  39. 39. Pronto! Selecione e altere alguns elementos, e veja como eles mudam diretamente no Android.
  40. 40. Pronto! Selecione o ícone do smartphone para fazer um screencast para a tela do PC
  41. 41. Links https://developers.google.com/web/tools/ chrome-devtools/ https://developers.google.com/web/tools/ chrome-devtools/debug/command- line/command-line-reference http://devtoolstips.com/ https://umaar.com/dev-tips/
  42. 42. Quem seguir                     @aerotwist                     @addyosmani                     @paul_irish                     @ChromeDevTools                     @ChromiumDev
  43. 43. Obrigado :) tegon.github.io/guia-do-f12/slides.pdf Leonardo Tegon

×