Paste the following snippet into your browser console, then trigger the event. Adjust the delay (in milliseconds) as needed.

setTimeout(function () {
  debugger;
}, 3000);

GIF via "Set a Timed Debugger To Web Inspect Hard-To-Grab Elements" - CSS Tricks.