Often, I’ll be trying to debug a popup, menu or timed animation- by hovering over the popup, then opening the dev tools, and then trying to look at the generated code in the Elements tab. But as soon as I move my cursor, the code disappears!
The quick fix?
- Open Chrome Dev Tools (Cmd + Option + I)
- Open the Console tab
- Paste the following, the hit enter:
- Navigate to your popup and wait- in 5 seconds, the debugger will pause the page, and you can see your code!
Enjoy your debugging! 🐛