Pausing JS execution in ChromeEdit
Use case: inspecting an element that only shows on hover, and which otherwise disappears as soon as you try to interact with it (eg. right-clicking to bring up the context menu and hit "Inspect").
Supposedly, hitting F8 with the "Sources" pane visible in the inspector is supposed to do this, but for me it wasn’t working, and the alternate binding shown in the tool tip (⌘-\
) also didn’t work (because on my machine 1Password has that). The suggested fallback approach works:
setTimeout(() => { debugger; }, 3000)