- @jsdude005
- Organize Chicago JavaScript meetup
- Sr. Web Developer, Nielsen
- Enjoy Learning, talking about JavaScript
Jump from 14,000ft
Chicago Marathon 2016
10,000 volts
App doesn't work
Can't add new record
Doesn't display all the records
Before start
- Repro locally
- Anything in console
- Isolate the bug
- Look at the data in network tab
- Sort out of the options
- Talk about how things were developed
- Easy things first
tools
- spy.js
- thesus by adobe
- vorlon by MS
Summary: Problem-1
- Elements Tab: Event Listeners
- Source Tab: Event Listener BreakPoints
- getEventListeners
- monitorEvent(element, [events])
- unmonitorEvents(element)
- Show function definition
- for jquery, findEventHandlers.js
You are not done!
one more problem to go
Summary: Problem-2
- Open file: cmd + P (Ctrl + P)
- Filter function: Cmd + shift + O (Ctrl + shift + O)
- console.table()
- conditional breakpoint
- Esc to open console
- Live Edit
- blackbox script
Style
- Cmd + z (Ctrl + z)
- class toggle
- Edit Margin, Padding
- color picker and color palette
- Shift + Click: change color format
- DOM search by css selctor
Source tab
- Ctrl + G : Go to line
- Cmd + option + F (ctrl + shift + F)
- Break point in a long line
- Matching Bracket: Ctrl + M
- Cmd + Click: multi cursor
- Cmd + D (ctrl + D): select next occurrence
Full stack trace
- setInterval
- setTimeout
- XMLHttpRequest
- promises
debug Async JS
XHR breakpoints
Enable Async
Summary: Network
- filter by, "Method:GET", domain:google,
- replay XHR
- async
- XHR breakpoint
- Filmstrip recording
- Copy a response
- Network throttle
My fav - snippets
- all globals
- jquerify
- all colors
- view cookies
- form controls
devtools-snippet
some extensions
- web developer
- Edit this cookie
- JSON View
- JSON formatter
- Page speed insights
- Visual Events
- http headers
- full page screen capture
chrome web store
What we have talked
- monitor, unmonitor
- filter Functions (Ctrl + Shift + O)
- console.table
- async, XHR breakpoints
- Know dev tool
Hotel Room
- body lotion as shoe shiner
- hair conditioner as shaving cream
- hair dryer to dry wet shocks
To be a better Developer
- You have to be explore curiously
- Learning interesting things
- Build passion, experiment and enjoy
- It's challenging...and it's a journey
- You will accomplish a lot of fulfillments
Learn by building
I need more tips...
www.youtube.com/c/thatjsdude
Thank you
Email: khan4019@gmail.com
@jsdude005
www.thatJSDude.com