SlideShare uma empresa Scribd logo
1 de 53
Baixar para ler offline
Debugging
Javascript
Munich Frontend Developers :: 13.05.2020 :: @hamatti
JuhisHi, I’m
Developer Advocate @ Futurice
Founder of Turku ❤ Frontend
@hamatti :: hamatti.org
From Helsinki, "
FUNDAMENTALS
Munich Frontend Devs @hamatti
FUNDAMENTALS
Munich Frontend Devs @hamatti
TOOLS & TECHNIQUES
NON-TECHNICAL METHODS
FUNDAMENTALS
Munich Frontend Devs @hamatti
TOOLS & TECHNIQUES
FUNDAMENTALS
Munich Frontend Devs @hamatti
STOP & BREATHE
Munich Frontend Devs @hamatti
REPRODUCE
Munich Frontend Devs @hamatti
REPRODUCE LOCATE
Munich Frontend Devs @hamatti
REPRODUCE LOCATE FIX
Munich Frontend Devs @hamatti
REPRODUCE LOCATE FIX
Munich Frontend Devs @hamatti
https://twitter.com/JenMsft/status/1256007715425382400/Munich Frontend Devs @hamatti
FROM END TO START
Munich Frontend Devs @hamatti
TOOLS & TECHNIQUES
Munich Frontend Devs @hamatti
CONSOLE.__
Munich Frontend Devs @hamatti
console.log
Munich Frontend Devs @hamatti
console.log
Munich Frontend Devs @hamatti
Template literals
Munich Frontend Devs @hamatti
Template literals
Munich Frontend Devs @hamatti
Multiple values with template literals
Munich Frontend Devs @hamatti
Multiple values with template literals
Munich Frontend Devs @hamatti
Object Property Value Shorthand
Munich Frontend Devs @hamatti
Object Property Value Shorthand
Munich Frontend Devs @hamatti
With CSS
Munich Frontend Devs @hamatti
With CSS
Munich Frontend Devs @hamatti
console.table
Munich Frontend Devs @hamatti
console.table
Munich Frontend Devs @hamatti
console.trace
console.count
console.group
https://developer.mozilla.org/en-US/docs/Web/API/Console
+
Munich Frontend Devs @hamatti
BROWSERS’
DEVELOPER TOOLS
Munich Frontend Devs @hamatti
DOM Inspector
Styles
Debugger
Network requests
Performance
Accessibility
Framework extensions
Munich Frontend Devs @hamatti
BROWSERS’ DEVELOPER TOOLS
Google Chrome
Munich Frontend Devs @hamatti
https://developers.google.com/web/tools/chrome-devtools
https://developer.mozilla.org/en-US/docs/Tools
Mozilla Firefox
BROWSERS’ DEVELOPER TOOLS
DEBUGGER
Munich Frontend Devs @hamatti
debugger
Munich Frontend Devs @hamatti
debugger
Munich Frontend Devs @hamatti
debugger
continue until next breakpoint
Munich Frontend Devs @hamatti
debugger
continue until next breakpoint
call function without
stepping into it
Munich Frontend Devs @hamatti
debugger
continue until next breakpoint
call function without
stepping into it
step into a function
Munich Frontend Devs @hamatti
debugger
continue until next breakpoint
call function without
stepping into it
step into a function
step out of a function
Munich Frontend Devs @hamatti
debugger
continue until next breakpoint
call function without
stepping into it
step into a function
step out of a function
next line
Munich Frontend Devs @hamatti
debugger
continue until next breakpoint
call function without
stepping into it
step into a function
step out of a function
next line
turn breakpoints off
Munich Frontend Devs @hamatti
breakpoints
Munich Frontend Devs @hamatti
conditional breakpoints
Munich Frontend Devs @hamatti
DOM breakpoints
Munich Frontend Devs @hamatti
NON-TECHNICAL METHODS
Munich Frontend Devs @hamatti
BRAIN DUMP
Munich Frontend Devs @hamatti
Munich Frontend Devs @hamatti
WRITE DOWN
1. WHAT IS THE PROBLEM?
Munich Frontend Devs @hamatti
WRITE DOWN
1. WHAT IS THE PROBLEM?
2. WHAT ARE YOUR ASSUMPTIONS?
Munich Frontend Devs @hamatti
WRITE DOWN
1. WHAT IS THE PROBLEM?
2. WHAT ARE YOUR ASSUMPTIONS?
3. WHAT HAVE YOU TRIED?
Munich Frontend Devs @hamatti
WRITE DOWN
TAKE A BREAK
Munich Frontend Devs @hamatti
TALK TO
A RUBBER DUCK
Munich Frontend Devs @hamatti
humanetechguides.com/debugging
Munich Frontend Devs @hamatti
Thanks!
juhis@futurice.com
@hamatti in Twitter
hamatti.org
Munich Frontend Devs @hamatti

Mais conteúdo relacionado

Semelhante a Debugging Javascript - Munich Frontend Developers 13.5.2020

Mobile Dev For Web Devs
Mobile Dev For Web DevsMobile Dev For Web Devs
Mobile Dev For Web Devs
Justin James
 
Continuous Improvement in PHP projects - PBC10
Continuous Improvement in PHP projects - PBC10Continuous Improvement in PHP projects - PBC10
Continuous Improvement in PHP projects - PBC10
Mayflower GmbH
 

Semelhante a Debugging Javascript - Munich Frontend Developers 13.5.2020 (20)

Debugging Python - Python Users Berlin 14.5.2020
Debugging Python - Python Users Berlin 14.5.2020Debugging Python - Python Users Berlin 14.5.2020
Debugging Python - Python Users Berlin 14.5.2020
 
GoodBarber presentation for students
GoodBarber presentation for studentsGoodBarber presentation for students
GoodBarber presentation for students
 
There is an App for...Vanity URLs
There is an App for...Vanity URLsThere is an App for...Vanity URLs
There is an App for...Vanity URLs
 
Mconf14 aperto vanity url-app
Mconf14 aperto vanity url-appMconf14 aperto vanity url-app
Mconf14 aperto vanity url-app
 
Mobile Dev For Web Devs
Mobile Dev For Web DevsMobile Dev For Web Devs
Mobile Dev For Web Devs
 
Animating Xamarin.Forms
Animating Xamarin.FormsAnimating Xamarin.Forms
Animating Xamarin.Forms
 
Web development- A Comprehensive Guide
Web development- A Comprehensive GuideWeb development- A Comprehensive Guide
Web development- A Comprehensive Guide
 
"How Can Web Devs Reach the Mobile Market?" by Dimitris Michalakos, Web Techn...
"How Can Web Devs Reach the Mobile Market?" by Dimitris Michalakos, Web Techn..."How Can Web Devs Reach the Mobile Market?" by Dimitris Michalakos, Web Techn...
"How Can Web Devs Reach the Mobile Market?" by Dimitris Michalakos, Web Techn...
 
Descubre Android
Descubre AndroidDescubre Android
Descubre Android
 
WebRTC Reborn Over The Air
WebRTC Reborn Over The AirWebRTC Reborn Over The Air
WebRTC Reborn Over The Air
 
When e-commerce meets Symfony
When e-commerce meets SymfonyWhen e-commerce meets Symfony
When e-commerce meets Symfony
 
Matteo Manchi - React Native for multi-platform mobile applications - Codemot...
Matteo Manchi - React Native for multi-platform mobile applications - Codemot...Matteo Manchi - React Native for multi-platform mobile applications - Codemot...
Matteo Manchi - React Native for multi-platform mobile applications - Codemot...
 
Awesome application in 2014
Awesome application in 2014Awesome application in 2014
Awesome application in 2014
 
How Long Does It Take to Build an App in 2021.pdf
How Long Does It Take to Build an App in 2021.pdfHow Long Does It Take to Build an App in 2021.pdf
How Long Does It Take to Build an App in 2021.pdf
 
Maintainable design
Maintainable designMaintainable design
Maintainable design
 
Announcing codepen support for flutter how that works for developers
Announcing codepen support for flutter how that works for developersAnnouncing codepen support for flutter how that works for developers
Announcing codepen support for flutter how that works for developers
 
Building Beautiful and Interactive Metro apps with JavaScript, HTML5 & CSS3
Building Beautiful and Interactive Metro apps with JavaScript, HTML5 & CSS3Building Beautiful and Interactive Metro apps with JavaScript, HTML5 & CSS3
Building Beautiful and Interactive Metro apps with JavaScript, HTML5 & CSS3
 
Continuous Improvement in PHP projects - PBC10
Continuous Improvement in PHP projects - PBC10Continuous Improvement in PHP projects - PBC10
Continuous Improvement in PHP projects - PBC10
 
Full Stack Developers Hire.pptx
Full Stack Developers Hire.pptxFull Stack Developers Hire.pptx
Full Stack Developers Hire.pptx
 
Full Stack Developers Hire.pptx
Full Stack Developers Hire.pptxFull Stack Developers Hire.pptx
Full Stack Developers Hire.pptx
 

Mais de Juha-Matti Santala

Mais de Juha-Matti Santala (20)

Debugging Django @ HelPy, Juha-Matti Santala 24.5.2022
Debugging Django @ HelPy, Juha-Matti Santala 24.5.2022Debugging Django @ HelPy, Juha-Matti Santala 24.5.2022
Debugging Django @ HelPy, Juha-Matti Santala 24.5.2022
 
Learning Rust - experiences from a Python/Javascript developer
Learning Rust - experiences from a Python/Javascript developerLearning Rust - experiences from a Python/Javascript developer
Learning Rust - experiences from a Python/Javascript developer
 
Contemporary Documentation @ PyAmsterdam, 2021-03-10
Contemporary Documentation @ PyAmsterdam, 2021-03-10Contemporary Documentation @ PyAmsterdam, 2021-03-10
Contemporary Documentation @ PyAmsterdam, 2021-03-10
 
Contemporary Documentation @ sthml.js
Contemporary Documentation @ sthml.jsContemporary Documentation @ sthml.js
Contemporary Documentation @ sthml.js
 
Contemporary Documentation, Django Day Copenhagen
Contemporary Documentation, Django Day CopenhagenContemporary Documentation, Django Day Copenhagen
Contemporary Documentation, Django Day Copenhagen
 
HelsinkiJS: 11ty + Ghost: Static Sites with Great Editor UX
HelsinkiJS: 11ty + Ghost: Static Sites with Great Editor UXHelsinkiJS: 11ty + Ghost: Static Sites with Great Editor UX
HelsinkiJS: 11ty + Ghost: Static Sites with Great Editor UX
 
PyCon Estonia: Contemporary Documentation
PyCon Estonia: Contemporary DocumentationPyCon Estonia: Contemporary Documentation
PyCon Estonia: Contemporary Documentation
 
Contemporary Documentation - HelsinkiJS
Contemporary Documentation - HelsinkiJSContemporary Documentation - HelsinkiJS
Contemporary Documentation - HelsinkiJS
 
Contemporary Documentation - TampereJS
Contemporary Documentation - TampereJSContemporary Documentation - TampereJS
Contemporary Documentation - TampereJS
 
The Art of Side Projects
The Art of Side ProjectsThe Art of Side Projects
The Art of Side Projects
 
“Graphical Perception and Graphical Methods for Analyzing Scientific Data” - ...
“Graphical Perception and Graphical Methods for Analyzing Scientific Data” - ...“Graphical Perception and Graphical Methods for Analyzing Scientific Data” - ...
“Graphical Perception and Graphical Methods for Analyzing Scientific Data” - ...
 
PyCon CZ 2019 Lightning Talk: 7 Days to Ostrava
PyCon CZ 2019 Lightning Talk: 7 Days to OstravaPyCon CZ 2019 Lightning Talk: 7 Days to Ostrava
PyCon CZ 2019 Lightning Talk: 7 Days to Ostrava
 
I teach, therefore I learn
I teach, therefore I learnI teach, therefore I learn
I teach, therefore I learn
 
Inspiration, Learning and Experimentation in Codepen
Inspiration, Learning and Experimentation in CodepenInspiration, Learning and Experimentation in Codepen
Inspiration, Learning and Experimentation in Codepen
 
You should have FOMO: What you're missing out if you're still using Python 2.7
You should have FOMO: What you're missing out if you're still using Python 2.7You should have FOMO: What you're missing out if you're still using Python 2.7
You should have FOMO: What you're missing out if you're still using Python 2.7
 
OuluES Human Accelerator: Dream Workshop
OuluES Human Accelerator: Dream WorkshopOuluES Human Accelerator: Dream Workshop
OuluES Human Accelerator: Dream Workshop
 
Minimum Viable Product: the workshop
Minimum Viable Product: the workshopMinimum Viable Product: the workshop
Minimum Viable Product: the workshop
 
Stockholm syndrome: or how I learned to love the editor
Stockholm syndrome: or how I learned to love the editorStockholm syndrome: or how I learned to love the editor
Stockholm syndrome: or how I learned to love the editor
 
Happy Little Accidents - The Art of Debugging
Happy Little Accidents - The Art of Debugging Happy Little Accidents - The Art of Debugging
Happy Little Accidents - The Art of Debugging
 
Happy Little Accidents - The Art of Debugging
Happy Little Accidents - The Art of DebuggingHappy Little Accidents - The Art of Debugging
Happy Little Accidents - The Art of Debugging
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 

Debugging Javascript - Munich Frontend Developers 13.5.2020