Javascript debugging
know your enemy
Andrii Vandakurov, front-end developer
eleks
Agenda
1. Basics
2. Slow internet ? (throttling)
3. Offline/Service Workers
4. HTTP proxy (Fiddler/Charles)
5. Server side (Node.js)
6. Rec user actions/HeatMap
7. Rec/replay everything ;) Andrii Vandakurov
https://goo.gl/7vSTjU
Video demos link
Breakpoints
Andrii Vandakurov
Andrii Vandakurov
Blackboxing
Andrii Vandakurov
Andrii VandakurovAndrii Vandakurov
Snippets
Promises
Andrii Vandakurov
What about slow internet connection ?
Throttling
and
Client Hints
to the rescue
Andrii Vandakurov
Client Hints (by Google)
<meta http-equiv="Accept-CH" content="DPR, Viewport-Width, Width">
Andrii Vandakurov
Service workers debugging
chrome://inspect/#service-workers
OFFLINE
Andrii VandakurovAndrii Vandakurov
How to find memory leak ?
Andrii Vandakurov
HTTP
proxy
Browser Server
HTTP
Proxy
Req
Res
Andrii Vandakurov
Server side
debugging
Node inspector
Andrii Vandakurov
Javascript
everywhere !
Andrii Vandakurov
What next?
Andrii Vandakurov
Track users behaviour
Inspectlet
1. Replay user’s actions
2. Check heatmap
Andrii Vandakurov
1. Record/replay all requests/responses
2. Record/replay users interactions
TeaLeaf (IBM)
Andrii Vandakurov
Track everything
Helpful links:
1. Chrome channel ( https://goo.gl/TMMCKf )
2. Client Hints ( https://goo.gl/fFJgi4 )
3. Service workers ( http://goo.gl/Xenyoa )
4. Inspectlet ( http://goo.gl/b3iPRk )
5. TeaLeaf ( http://goo.gl/kRD0xe )
6. Github repo ( https://goo.gl/ukJbhG )
Andrii Vandakurov
QA ?

Kharkivjs javascript debugging. know your enemy