Maciej Bednarczyk
  • About
  • Blog
  • enpl

Debugging

  • All posts
  • CSS 1
  • Cybersecurity 3
  • Debugging 1
  • JavaScript 2
  • Next JS 3
  • Project management 1
  • React 2
  • Snippets 1
  • TypeScript 1
  • Web Performance 1
  • Web development 3
  • Workspace Setup 1

Latest - Debugging

My Go-To Quick Debugging Trick: Freezing the Page with setTimeout and debugger

As a web developer, one of the trickiest things to debug is elements like dropdowns, menus, or lists that tend to disappear or change state when you unfocus or interact with other parts of the page. My favorite and super quick trick to tackle this is using setTimeout(() => { debugger; }, 5000). Here's why it's so effective:

December 30, 2023 - 1 min

Maciej Bednarczyk© 2026
  • About
  • Blog
  • LinkedIn
  • Email
  • RSS